예제 #1
0
 public void AddCombi(int newCombi)
 {
     Debug.WriteLine("adding combi: {0}", newCombi);
     if (!AvailableCombis.Contains(newCombi))
     {
         AvailableCombis.Add(newCombi);
     }
 }
예제 #2
0
        private void Load()
        {
            PlayerChoice       = Properties.Settings.Default.ReportGenerator_Playerchoice;
            SetChoice          = Properties.Settings.Default.ReportGenerator_Setchoice;
            ServiceStatsChoice = Properties.Settings.Default.ReportGenerator_ServiceStatsChoice;
            ReturnStatsChoice  = Properties.Settings.Default.ReportGenerator_ReturnStatsChoice;
            ThirdStatsChoice   = Properties.Settings.Default.ReportGenerator_ThirdStatsChoice;
            FourthStatsChoice  = Properties.Settings.Default.ReportGenerator_FourthStatsChoice;
            LastStatsChoice    = Properties.Settings.Default.ReportGenerator_LastStatsChoice;
            AllStatsChoice     = Properties.Settings.Default.ReportGenerator_AllStatsChoice;
            ExpandState        = Properties.Settings.Default.ReportGenerator_ExpandState;
            GeneralChoice      = Properties.Settings.Default.ReportGenerator_GeneralChoice;
            CrunchTimeChoice   = Properties.Settings.Default.ReportGenerator_CrunchTimeChoice;

            var combisList = PruneCombis(Properties.Settings.Default.ReportGenerator_Combis);

            if (combisList != null && combisList.Count > 0)
            {
                AvailableCombis.AddRange(combisList);
                SelectedCombis.AddRange(new List <int>(combisList));
            }
        }