Exemplo n.º 1
0
        /******************************** User Interface Utilities ********************************/

        private void RefreshBuildData()
        {
            LoadedBuildOrders = BuildReader.ReadFromBuildDirectory();
            if (bBuildListSortedByRace)
            {
                PopulateBuildList(GetSortedBuildsByRace(LoadedBuildOrders, SortByRaceIndex));
            }
            else if (bBuildListSortedByMatchup)
            {
                PopulateBuildList(GetSortedBuildsByMatchup(LoadedBuildOrders, SortByMatchupIndex));
            }
            else
            {
                PopulateBuildList(LoadedBuildOrders);
            }
            if (SelectedBuild == null)
            {
                if (LoadedBuildOrders.Count > 0)
                {
                    SelectedBuild = LoadedBuildOrders[0];
                }
            }
            PopulateStepList(SelectedBuild);
            PopulateBuildEditor(SelectedBuild);
            ReSelectBuildInList();
            BuildList.Select();
        }