Move Working on getting the listboxwindow not to disappear when we do regression testing

This commit is contained in:
2018-09-27 14:41:10 -05:00
parent ead0d3511f
commit 6d3db35cfc
4 changed files with 40 additions and 34 deletions

View File

@ -14,38 +14,38 @@ using System.Resources;
namespace EduNetworkBuilder
{
class MyPuzzleEntry
{
public string Title;
public string PuzzleName;
public bool isdone = false;
public string level = "";
public bool InRegressionMode = false;
public bool HasTest = false;
public bool PassedTest = false;
public bool FailedTest = false;
public override string ToString()
{
string donstr = "";
if (InRegressionMode)
{
if (HasTest) donstr = "+ ";
else donstr = "- ";
if (PassedTest) donstr = "$ ";
if (FailedTest) donstr = "$ ";
return donstr + level + " " + this.Title;
}
else
{
if (isdone) donstr = "* ";
return donstr + level + " " + this.Title;
}
}
}
public partial class ListBoxWindow : Form
{
class MyPuzzleEntry
{
public string Title;
public string PuzzleName;
public bool isdone = false;
public string level = "";
public bool InRegressionMode = false;
public bool HasTest = false;
public bool PassedTest = false;
public bool FailedTest = false;
public override string ToString()
{
string donstr = "";
if (InRegressionMode)
{
if (HasTest) donstr = "+ ";
else donstr = "- ";
if (PassedTest) donstr = "$ ";
if (FailedTest) donstr = "$ ";
return donstr + level + " " + this.Title;
}
else
{
if (isdone) donstr = "* ";
return donstr + level + " " + this.Title;
}
}
}
protected LBContents MyMode = LBContents.messages;
protected DebugLevel WhatToDisplay = DebugLevel.info; //used when viewing packet-messages
NetworkDevice myNetDevice;
@ -506,11 +506,11 @@ namespace EduNetworkBuilder
{
MyPuzzleEntry MPE = (MyPuzzleEntry)lbWindowData.SelectedItem;
string TheName = MPE.PuzzleName;
Visible = false;
//Visible = false;
BuilderWindow myWin = (BuilderWindow)Application.OpenForms["BuilderWindow"];
if (myWin != null)
{
myWin.Activate();
//myWin.Activate();
myWin.replayNetwork(TheName, 1);
//Return back to the listbox window
Visible = true;