Add untested checkmark

This commit is contained in:
Tim Young 2018-09-27 14:48:53 -05:00
parent dda5448e59
commit c10db3a8bb

View File

@ -56,7 +56,8 @@ namespace EduNetworkBuilder
string TestString = "Test";
string NoTestString = "No Test";
string PassedString = "Passed";
string FailedString = "Failed;";
string FailedString = "Failed";
string Untested = "Untested";
public bool ClosingRegression = false;
@ -158,6 +159,7 @@ namespace EduNetworkBuilder
newCB = AddCheckBox(count++, NoTestString);
newCB = AddCheckBox(count++, PassedString);
newCB = AddCheckBox(count++, FailedString);
newCB = AddCheckBox(count++, Untested);
panelCheckboxes.ResumeLayout();
btnOK.Text = NB.Translate("_Load");
@ -422,6 +424,10 @@ namespace EduNetworkBuilder
else tags.Add(NoTestString);
if (oursettings.HasPassed(puzzle_name)) tags.Add(PassedString);
if (oursettings.HasFailed(puzzle_name)) tags.Add(FailedString);
if (oursettings.HasPassed(puzzle_name)) tags.Add(PassedString);
if (!oursettings.HasFailed(puzzle_name) && !oursettings.HasPassed(puzzle_name)
&& oursettings.HasReplay(puzzle_name))
tags.Add(Untested);
foreach (string tag in tags)
{
if (isChecked(tag))
@ -443,7 +449,7 @@ namespace EduNetworkBuilder
}
if (selected != null && selected != "")
{
if(selectedIndex >=0 && selectedIndex <= lbWindowData.Items.Count)
if(selectedIndex >=0 && selectedIndex < lbWindowData.Items.Count)
lbWindowData.SelectedIndex = selectedIndex;
}
if (lbWindowData.SelectedIndex != -1)