diff --git a/EduNetworkBuilder/ListBoxWindow.cs b/EduNetworkBuilder/ListBoxWindow.cs index 8f39add..1273a6b 100644 --- a/EduNetworkBuilder/ListBoxWindow.cs +++ b/EduNetworkBuilder/ListBoxWindow.cs @@ -112,7 +112,37 @@ namespace EduNetworkBuilder if(mode == LBContents.regressiontest) { //Regression testing. Similar to listing all the puzzles. - // + Text = NB.Translate("LBW_Regression_Testing"); //Regression Testing + // + UpdateForm(); + CheckBox newCB; + int count = 0; + + panelCheckboxes.SuspendLayout(); + string SelectedTag = GetSelectedTag(); + tbSearchBox.Visible = true; + if (SelectedTag == NB.Translate("_All")) + Text = Text + NB.Translate("_AllS"); + + NBSettings oursettings = NB.GetSettings(); + + foreach (string str in NB.GetPuzzleTags()) + { + newCB = AddCheckBox(count, str); + if (str == SelectedTag || (SelectedTag == "ALL" && Regex.IsMatch(str, "Level"))) + { + newCB.Checked = true; //The first level with an unsolved puzzle starts checked + } + else + { + newCB.Checked = false; + } + count++; + } + panelCheckboxes.ResumeLayout(); + btnOK.Text = NB.Translate("_Load"); + btnAdd.Text = NB.Translate("_Cancel"); + btnAdd.Visible = true; } UpdateForm(); } diff --git a/EduNetworkBuilder/Resources/languages/edustrings.resx b/EduNetworkBuilder/Resources/languages/edustrings.resx index 0809f53..dbcc568 100644 --- a/EduNetworkBuilder/Resources/languages/edustrings.resx +++ b/EduNetworkBuilder/Resources/languages/edustrings.resx @@ -2125,4 +2125,8 @@ This network already had a replay. Would you like to replace the replay with this one? N_StoreReplayAgain = This network already had a replay. Would you like to replace the replay with this one? + + Regression testing + LBW_Regression_Testing = Regression testing + \ No newline at end of file