2023-01-26 13:42:36 +01:00

23 lines
775 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace OOP_Opdracht_CSharp_Alfa_2022.classes
{
class Publisher : Model
{
public Publisher(String _tablename) : base(_tablename)
{
// Set the table name
this.tablename = "publisher";
// Initialize dictionary
if (this.table_data == null) this.table_data = new Dictionary<int, string>();
// Add the publishers to the dictionary
String[] publishers = { "Electronic Arts", "Valve", "id Software", "Facepunch Studios", "Activision Blizzard" };
for(int index = 1; index < publishers.Length+1; index++){
this.table_data.Add(index, publishers[index-1]);
}
}
}
}