From bf0b273c8de3d47d1a824791dea9132a84956c4a Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 21 Sep 2018 09:10:28 -0500 Subject: [PATCH] Copy some code from puzzle list for initial view of window --- EduNetworkBuilder/ListBoxWindow.cs | 32 ++++++++++++++++++- .../Resources/languages/edustrings.resx | 4 +++ 2 files changed, 35 insertions(+), 1 deletion(-) 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