Example #1
0
 private void Save()
 {
     Properties.Settings.Default.ReportGenerator_Playerchoice       = PlayerChoice;
     Properties.Settings.Default.ReportGenerator_Setchoice          = SetChoice;
     Properties.Settings.Default.ReportGenerator_Combis             = SelectedCombis.ToArray();
     Properties.Settings.Default.ReportGenerator_ServiceStatsChoice = ServiceStatsChoice;
     Properties.Settings.Default.ReportGenerator_ReturnStatsChoice  = ReturnStatsChoice;
     Properties.Settings.Default.ReportGenerator_ThirdStatsChoice   = ThirdStatsChoice;
     Properties.Settings.Default.ReportGenerator_FourthStatsChoice  = FourthStatsChoice;
     Properties.Settings.Default.ReportGenerator_LastStatsChoice    = LastStatsChoice;
     Properties.Settings.Default.ReportGenerator_AllStatsChoice     = AllStatsChoice;
     Properties.Settings.Default.ReportGenerator_ExpandState        = ExpandState;
     Properties.Settings.Default.ReportGenerator_GeneralChoice      = GeneralChoice;
     Properties.Settings.Default.ReportGenerator_CrunchTimeChoice   = CrunchTimeChoice;
 }
Example #2
0
 public void SelectCombi(int combi, bool select)
 {
     Debug.WriteLine("selecting combi: {0} ({1})", combi, select);
     if (select)
     {
         if (!SelectedCombis.Contains(combi))
         {
             SelectedCombis.Add(combi);
             NotifyOfPropertyChange(nameof(SelectedCombis));
         }
     }
     else
     {
         SelectedCombis.Remove(combi);
         NotifyOfPropertyChange(nameof(SelectedCombis));
     }
 }
Example #3
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));
            }
        }