Able to click the test button when an item is selected for regression
This commit is contained in:
parent
6277fccc77
commit
d4e206047c
@ -395,6 +395,8 @@ namespace EduNetworkBuilder
|
|||||||
btnReset.Visible = false;
|
btnReset.Visible = false;
|
||||||
tbSearchBox.Visible = false;
|
tbSearchBox.Visible = false;
|
||||||
|
|
||||||
|
btnOK.Text = "Test";
|
||||||
|
|
||||||
PuzzleInfo pi;
|
PuzzleInfo pi;
|
||||||
string shown_name;
|
string shown_name;
|
||||||
string puzzle_name = "";
|
string puzzle_name = "";
|
||||||
@ -437,11 +439,8 @@ namespace EduNetworkBuilder
|
|||||||
}
|
}
|
||||||
if (selected != null && selected != "")
|
if (selected != null && selected != "")
|
||||||
{
|
{
|
||||||
foreach (object one in lbWindowData.Items)
|
if(selectedIndex >=0 && selectedIndex <= lbWindowData.Items.Count)
|
||||||
{
|
lbWindowData.SelectedIndex = selectedIndex;
|
||||||
if (one.ToString() == selected)
|
|
||||||
lbWindowData.SelectedItem = selected;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (lbWindowData.SelectedIndex != -1)
|
if (lbWindowData.SelectedIndex != -1)
|
||||||
{
|
{
|
||||||
@ -628,9 +627,9 @@ namespace EduNetworkBuilder
|
|||||||
//We always add one since we are skipping the loopback device
|
//We always add one since we are skipping the loopback device
|
||||||
myNetDevice.EditDHCP(lbWindowData.SelectedIndex + 1, this);
|
myNetDevice.EditDHCP(lbWindowData.SelectedIndex + 1, this);
|
||||||
}
|
}
|
||||||
if (MyMode == LBContents.puzzles)
|
if (MyMode == LBContents.puzzles || MyMode == LBContents.regressiontest)
|
||||||
{
|
{
|
||||||
//Just like pressing the OK button. We load the map
|
//Just like pressing the OK button. We load the map / process regression
|
||||||
btnOK_Click(sender, e);
|
btnOK_Click(sender, e);
|
||||||
}
|
}
|
||||||
UpdateForm();
|
UpdateForm();
|
||||||
@ -700,6 +699,8 @@ namespace EduNetworkBuilder
|
|||||||
UpdateForm();
|
UpdateForm();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (MyMode == LBContents.regressiontest)
|
||||||
|
UpdateForm();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user