Copy some code from puzzle list for initial view of window
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user