Move Working on getting the listboxwindow not to disappear when we do regression testing
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user