Example #1
0
 public UserRosterScreen()
 {
     InitializeComponent();
     this.BackColor = default;
     UserOpsFileHandler.Create_UserOps_File();
     ListWiper.Wipe_A_List_Clean(Program.userOps);
     UserOpsFileHandler.Read_UserOps_From_File(Program.userOps);
     CheckboxChecker.Check_All_The_Checkboxes_In_A_Page_Based_On_A_List(Program.userOps, RosterBox);
 }
Example #2
0
        public static void Reset_A_List_To_Its_Default_Values(List <string> listToReset, List <string> listOfDefaults)
        {
            ListWiper.Wipe_A_List_Clean(listToReset);

            for (int i = 0; i < listOfDefaults.Count; i++)
            {
                listToReset.Add(listOfDefaults[i]);
            }
        }
Example #3
0
        private void ChapterFiltersBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            ListWiper.Wipe_A_List_Clean(Program.stageLists.chaptersToFilterOut);

            for (int i = 0; i < ChapterFiltersBox.Items.Count; i++)
            {
                if (ChapterFiltersBox.GetItemChecked(i) == false)
                {
                    Program.stageLists.chaptersToFilterOut.Add(ChapterFiltersBox.Items[i].ToString());
                }
            }
        }
Example #4
0
        private void RarityFiltersBox_SelectedIndexChanged_1(object sender, EventArgs e)
        {
            ListWiper.Wipe_A_List_Clean(Program.operatorRarityLists.raritiesToFilterOut);

            for (int i = 0; i < RarityFiltersBox.Items.Count; i++)
            {
                if (RarityFiltersBox.GetItemChecked(i) == false)
                {
                    Program.operatorRarityLists.raritiesToFilterOut.Add(RarityFiltersBox.Items[i].ToString());
                }
            }
        }
Example #5
0
        public static string Roll_For_Stage()
        {
            StageLists stageLists = Program.stageLists;

            ListWiper.Wipe_A_List_Clean(stageLists.userStages);

            foreach (string stages in stageLists.userStagesDefault)
            {
                stageLists.userStages.Add(stages);
            }

            StageFilter.Filter_Out_Unselected_Stages_From_Pool_Of_Maps(stageLists);

            Random randomNumberGenerator = Program.randomNumberGenerator;

            try
            {
                return(stageLists.userStages[randomNumberGenerator.Next(0, stageLists.userStages.Count)]);
            }
            catch (ArgumentOutOfRangeException)
            {
                return("Stage Not Found!");
            }
        }