The test hints were out of order. make them show progressively more information.

This commit is contained in:
Tim Young 2017-10-24 14:04:19 -05:00
parent 67210c4d1e
commit adc80e95a4

View File

@ -509,10 +509,10 @@ namespace EduNetworkBuilder
case NetTestVerbosity.full:
rbHelp4.Checked = true;
break;
case NetTestVerbosity.basic:
case NetTestVerbosity.hints:
rbHelp3.Checked = true;
break;
case NetTestVerbosity.hints:
case NetTestVerbosity.basic:
rbHelp2.Checked = true;
break;
case NetTestVerbosity.none:
@ -1903,29 +1903,41 @@ namespace EduNetworkBuilder
private void rbHelp1_CheckedChanged(object sender, EventArgs e)
{
if (processing) return;
myNetwork.HintsToDisplay = NetTestVerbosity.none;
UpdateForm();
if (rbHelp1.Checked)
{
myNetwork.HintsToDisplay = NetTestVerbosity.none;
UpdateForm();
}
}
private void rbHelp2_CheckedChanged(object sender, EventArgs e)
{
if (processing) return;
myNetwork.HintsToDisplay = NetTestVerbosity.hints;
UpdateForm();
if (rbHelp2.Checked)
{
myNetwork.HintsToDisplay = NetTestVerbosity.basic;
UpdateForm();
}
}
private void rbHelp3_CheckedChanged(object sender, EventArgs e)
{
if (processing) return;
myNetwork.HintsToDisplay = NetTestVerbosity.basic;
UpdateForm();
if (rbHelp3.Checked)
{
myNetwork.HintsToDisplay = NetTestVerbosity.hints;
UpdateForm();
}
}
private void rbHelp4_CheckedChanged(object sender, EventArgs e)
{
if (processing) return;
myNetwork.HintsToDisplay = NetTestVerbosity.full;
UpdateForm();
if (rbHelp4.Checked)
{
myNetwork.HintsToDisplay = NetTestVerbosity.full;
UpdateForm();
}
}