public void InitializeNecessities() { DataMiner miner = new DataMiner(); ct = ChampionTable.Init(miner.ReturnTable); InitializeDropDowns(); // ct.testTable(); }
public void InitializeNecessities() { DataMiner miner = new DataMiner(); ct = ChampionTable.Init(miner.ReturnTable); InitializeDropDowns(); // ct.testTable(); }
private void InitializeDropDowns() { ChampionTable t = ChampionTable.ChampTable; for (int ii = 0; ii < t.table.Rows.Count; ii++) { ComboBoxChampItem cbci = t.GetBoxItemForIndex(ii); champOneDropdown.Items.Add(cbci); champTwoDropdown.Items.Add(cbci); } }
// Private constructor, ChampionTable follows a Singelton pattern public static ChampionTable Init(DataTable t) { if (instance == null && !initialized) { instance = new ChampionTable(t); initialized = true; return instance; } else { return instance; } }
// Private constructor, ChampionTable follows a Singelton pattern public static ChampionTable Init(DataTable t) { if (instance == null && !initialized) { instance = new ChampionTable(t); initialized = true; return(instance); } else { return(instance); } }