Copy some code from puzzle list for initial view of window
This commit is contained in:
parent
063f207ec4
commit
bf0b273c8d
@ -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();
|
||||
}
|
||||
|
@ -2125,4 +2125,8 @@
|
||||
<value>This network already had a replay. Would you like to replace the replay with this one?</value>
|
||||
<comment>N_StoreReplayAgain = This network already had a replay. Would you like to replace the replay with this one?</comment>
|
||||
</data>
|
||||
<data name="LBW_Regression_Testing" xml:space="preserve">
|
||||
<value>Regression testing</value>
|
||||
<comment>LBW_Regression_Testing = Regression testing</comment>
|
||||
</data>
|
||||
</root>
|
Loading…
Reference in New Issue
Block a user