예제 #1
0
 public void InitializeNecessities()
 {
     DataMiner miner = new DataMiner();
     ct = ChampionTable.Init(miner.ReturnTable);
     InitializeDropDowns();
     // ct.testTable();
 }
예제 #2
0
        public void InitializeNecessities()
        {
            DataMiner miner = new DataMiner();

            ct = ChampionTable.Init(miner.ReturnTable);
            InitializeDropDowns();
            // ct.testTable();
        }
예제 #3
0
        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);
            }
        }
예제 #4
0
 // 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;
     }
 }
예제 #5
0
 // 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);
     }
 }