public MainForm() { InitializeComponent(); companies = new CompaniesList(); sector = new Sector(new List<Company>()); this.playersList = new List<Player>(); Player player = new Player(); player.Id = 1; this.playersList.Add(player); player = new Player(); player.Id = 2; this.playersList.Add(player); this.conrols(); }
/// <summary> /// /// </summary> /// <param name="sector"></param> /// <returns></returns> private Panel createSectorPanel(Sector sector) { Panel panel = new Panel(); //sector name //array of panels company return panel; }