public NewUniverse(MainStuff host) { hostApplication = host; currentGame = host.games[host.currentGame]; largestsector = 0; InitializeComponent(); }
public ForceManager(MainStuff newHost) { hostApplication = newHost; InitializeComponent(); for (int i = 0; i < hostApplication.games[hostApplication.currentGame].allianceMembers.Count; i++) { AllianceMemberListBox.Items.Add(hostApplication.games[hostApplication.currentGame].allianceMembers[i].ToString()); } for (int i = 0; i < hostApplication.games[hostApplication.currentGame].seedSectors.Count; i++) { SeedSectorListBox.Items.Add(hostApplication.games[hostApplication.currentGame].seedSectors[i].ToString()); } }
public PlotWindow(MainStuff host) { hostApplication = host; InitializeComponent(); int nrofgalaxies = hostApplication.games[hostApplication.currentGame].nrofgalaxies; //Add the galaxies to the list of allowed galaxies. Do not add the first, Zero, galaxy for (int g = 1; g < nrofgalaxies; g++) { checkedListBox1.Items.Add((object)hostApplication.games[hostApplication.currentGame].galaxy[g].galaxy_name); } for (int x = 0; x < checkedListBox1.Items.Count; x += 1) { checkedListBox1.SetItemChecked(x, true); } allowed = new bool[nrofgalaxies]; for (int x = 0; x < allowed.Length; x += 1) { allowed[x] = true; } checkedListBox1.ItemCheck += new ItemCheckEventHandler(ItemCheck_Changed); }