Add drop-down menu item that shows up when we are in replay mode for the regression testing window
This commit is contained in:
parent
64b9f558c4
commit
fcde8a1c5b
@ -111,6 +111,7 @@ namespace EduNetworkBuilder
|
|||||||
}
|
}
|
||||||
if(mode == LBContents.regressiontest)
|
if(mode == LBContents.regressiontest)
|
||||||
{
|
{
|
||||||
|
MyMode = LBContents.regressiontest;
|
||||||
//Regression testing. Similar to listing all the puzzles.
|
//Regression testing. Similar to listing all the puzzles.
|
||||||
Text = NB.Translate("LBW_Regression_Testing"); //Regression Testing
|
Text = NB.Translate("LBW_Regression_Testing"); //Regression Testing
|
||||||
//
|
//
|
||||||
|
53
EduNetworkBuilder/NetworkBuilder.Designer.cs
generated
53
EduNetworkBuilder/NetworkBuilder.Designer.cs
generated
@ -37,6 +37,8 @@
|
|||||||
this.logoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.logoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.replayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.replayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.storeReplayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.saveReplayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
@ -65,6 +67,7 @@
|
|||||||
this.solvedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.solvedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.toSolveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.toSolveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.randomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.randomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.regressionTestingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.panelChoices = new System.Windows.Forms.Panel();
|
this.panelChoices = new System.Windows.Forms.Panel();
|
||||||
this.lbMessages = new System.Windows.Forms.ListBox();
|
this.lbMessages = new System.Windows.Forms.ListBox();
|
||||||
this.lblStatus = new System.Windows.Forms.Label();
|
this.lblStatus = new System.Windows.Forms.Label();
|
||||||
@ -79,8 +82,6 @@
|
|||||||
this.myProgressBar = new System.Windows.Forms.ProgressBar();
|
this.myProgressBar = new System.Windows.Forms.ProgressBar();
|
||||||
this.cbLineColor = new System.Windows.Forms.ComboBox();
|
this.cbLineColor = new System.Windows.Forms.ComboBox();
|
||||||
this.cbFillColor = new System.Windows.Forms.ComboBox();
|
this.cbFillColor = new System.Windows.Forms.ComboBox();
|
||||||
this.storeReplayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.saveReplayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.msMainMenuStrip.SuspendLayout();
|
this.msMainMenuStrip.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pbNetworkView)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pbNetworkView)).BeginInit();
|
||||||
this.HelpPanel.SuspendLayout();
|
this.HelpPanel.SuspendLayout();
|
||||||
@ -168,6 +169,20 @@
|
|||||||
this.replayToolStripMenuItem.Text = "Replay";
|
this.replayToolStripMenuItem.Text = "Replay";
|
||||||
this.replayToolStripMenuItem.Click += new System.EventHandler(this.replayToolStripMenuItem_Click);
|
this.replayToolStripMenuItem.Click += new System.EventHandler(this.replayToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
|
// storeReplayToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.storeReplayToolStripMenuItem.Name = "storeReplayToolStripMenuItem";
|
||||||
|
this.storeReplayToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
|
||||||
|
this.storeReplayToolStripMenuItem.Text = "Store Replay";
|
||||||
|
this.storeReplayToolStripMenuItem.Click += new System.EventHandler(this.storeReplayToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// saveReplayToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.saveReplayToolStripMenuItem.Name = "saveReplayToolStripMenuItem";
|
||||||
|
this.saveReplayToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
|
||||||
|
this.saveReplayToolStripMenuItem.Text = "Save Replay";
|
||||||
|
this.saveReplayToolStripMenuItem.Click += new System.EventHandler(this.saveReplayToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// editToolStripMenuItem
|
// editToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
@ -350,37 +365,46 @@
|
|||||||
this.puzzlesToolStripMenuItem,
|
this.puzzlesToolStripMenuItem,
|
||||||
this.solvedToolStripMenuItem,
|
this.solvedToolStripMenuItem,
|
||||||
this.toSolveToolStripMenuItem,
|
this.toSolveToolStripMenuItem,
|
||||||
this.randomToolStripMenuItem});
|
this.randomToolStripMenuItem,
|
||||||
|
this.regressionTestingToolStripMenuItem});
|
||||||
this.samplesToolStripMenuItem.Name = "samplesToolStripMenuItem";
|
this.samplesToolStripMenuItem.Name = "samplesToolStripMenuItem";
|
||||||
this.samplesToolStripMenuItem.Size = new System.Drawing.Size(77, 24);
|
this.samplesToolStripMenuItem.Size = new System.Drawing.Size(77, 24);
|
||||||
this.samplesToolStripMenuItem.Text = "Samples";
|
this.samplesToolStripMenuItem.Text = "Samples";
|
||||||
|
this.samplesToolStripMenuItem.DropDownOpening += new System.EventHandler(this.samplesToolStripMenuItem_DropDownOpening);
|
||||||
//
|
//
|
||||||
// puzzlesToolStripMenuItem
|
// puzzlesToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.puzzlesToolStripMenuItem.Name = "puzzlesToolStripMenuItem";
|
this.puzzlesToolStripMenuItem.Name = "puzzlesToolStripMenuItem";
|
||||||
this.puzzlesToolStripMenuItem.Size = new System.Drawing.Size(140, 26);
|
this.puzzlesToolStripMenuItem.Size = new System.Drawing.Size(207, 26);
|
||||||
this.puzzlesToolStripMenuItem.Text = "Puzzles";
|
this.puzzlesToolStripMenuItem.Text = "Puzzles";
|
||||||
this.puzzlesToolStripMenuItem.Click += new System.EventHandler(this.puzzlesToolStripMenuItem_Click);
|
this.puzzlesToolStripMenuItem.Click += new System.EventHandler(this.puzzlesToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// solvedToolStripMenuItem
|
// solvedToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.solvedToolStripMenuItem.Name = "solvedToolStripMenuItem";
|
this.solvedToolStripMenuItem.Name = "solvedToolStripMenuItem";
|
||||||
this.solvedToolStripMenuItem.Size = new System.Drawing.Size(140, 26);
|
this.solvedToolStripMenuItem.Size = new System.Drawing.Size(207, 26);
|
||||||
this.solvedToolStripMenuItem.Text = "Solved";
|
this.solvedToolStripMenuItem.Text = "Solved";
|
||||||
//
|
//
|
||||||
// toSolveToolStripMenuItem
|
// toSolveToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.toSolveToolStripMenuItem.Name = "toSolveToolStripMenuItem";
|
this.toSolveToolStripMenuItem.Name = "toSolveToolStripMenuItem";
|
||||||
this.toSolveToolStripMenuItem.Size = new System.Drawing.Size(140, 26);
|
this.toSolveToolStripMenuItem.Size = new System.Drawing.Size(207, 26);
|
||||||
this.toSolveToolStripMenuItem.Text = "To Solve";
|
this.toSolveToolStripMenuItem.Text = "To Solve";
|
||||||
//
|
//
|
||||||
// randomToolStripMenuItem
|
// randomToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.randomToolStripMenuItem.Name = "randomToolStripMenuItem";
|
this.randomToolStripMenuItem.Name = "randomToolStripMenuItem";
|
||||||
this.randomToolStripMenuItem.Size = new System.Drawing.Size(140, 26);
|
this.randomToolStripMenuItem.Size = new System.Drawing.Size(207, 26);
|
||||||
this.randomToolStripMenuItem.Text = "Random";
|
this.randomToolStripMenuItem.Text = "Random";
|
||||||
this.randomToolStripMenuItem.Click += new System.EventHandler(this.randomToolStripMenuItem_Click);
|
this.randomToolStripMenuItem.Click += new System.EventHandler(this.randomToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
|
// regressionTestingToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.regressionTestingToolStripMenuItem.Name = "regressionTestingToolStripMenuItem";
|
||||||
|
this.regressionTestingToolStripMenuItem.Size = new System.Drawing.Size(207, 26);
|
||||||
|
this.regressionTestingToolStripMenuItem.Text = "Regression Testing";
|
||||||
|
this.regressionTestingToolStripMenuItem.Click += new System.EventHandler(this.regressionTestingToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// panelChoices
|
// panelChoices
|
||||||
//
|
//
|
||||||
this.panelChoices.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.panelChoices.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
@ -547,20 +571,6 @@
|
|||||||
this.cbFillColor.Size = new System.Drawing.Size(80, 24);
|
this.cbFillColor.Size = new System.Drawing.Size(80, 24);
|
||||||
this.cbFillColor.TabIndex = 13;
|
this.cbFillColor.TabIndex = 13;
|
||||||
//
|
//
|
||||||
// storeReplayToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.storeReplayToolStripMenuItem.Name = "storeReplayToolStripMenuItem";
|
|
||||||
this.storeReplayToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
|
|
||||||
this.storeReplayToolStripMenuItem.Text = "Store Replay";
|
|
||||||
this.storeReplayToolStripMenuItem.Click += new System.EventHandler(this.storeReplayToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// saveReplayToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.saveReplayToolStripMenuItem.Name = "saveReplayToolStripMenuItem";
|
|
||||||
this.saveReplayToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
|
|
||||||
this.saveReplayToolStripMenuItem.Text = "Save Replay";
|
|
||||||
this.saveReplayToolStripMenuItem.Click += new System.EventHandler(this.saveReplayToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// BuilderWindow
|
// BuilderWindow
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||||
@ -651,6 +661,7 @@
|
|||||||
private System.Windows.Forms.ToolStripMenuItem replayToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem replayToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem storeReplayToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem storeReplayToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem saveReplayToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem saveReplayToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem regressionTestingToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -814,7 +814,8 @@ namespace EduNetworkBuilder
|
|||||||
selectedButton = btn.Name;
|
selectedButton = btn.Name;
|
||||||
lblStatus.Text = myTooltip.GetToolTip(btn);
|
lblStatus.Text = myTooltip.GetToolTip(btn);
|
||||||
myNetwork.InShapeEditMode = true;
|
myNetwork.InShapeEditMode = true;
|
||||||
if (selectedButton == "btnShapes") {
|
if (selectedButton == "btnShapes")
|
||||||
|
{
|
||||||
myNetwork.InShapeEditMode = true;
|
myNetwork.InShapeEditMode = true;
|
||||||
if (CurrentShape == NetShapeType.none) CurrentShape = NetShapeType.rectangle;
|
if (CurrentShape == NetShapeType.none) CurrentShape = NetShapeType.rectangle;
|
||||||
if (doupdate)
|
if (doupdate)
|
||||||
@ -838,7 +839,8 @@ namespace EduNetworkBuilder
|
|||||||
btn.BackColor = Button.DefaultBackColor;
|
btn.BackColor = Button.DefaultBackColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (doupdate) {
|
if (doupdate)
|
||||||
|
{
|
||||||
UpdateForm();
|
UpdateForm();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2916,5 +2918,23 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
SaveReplayFile();
|
SaveReplayFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void regressionTestingToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ListBoxWindow LBW = new ListBoxWindow(null, LBContents.regressiontest);
|
||||||
|
LBW.ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void samplesToolStripMenuItem_DropDownOpening(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (OurSettings != null && OurSettings.ReplayMode)
|
||||||
|
{
|
||||||
|
regressionTestingToolStripMenuItem.Visible = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
regressionTestingToolStripMenuItem.Visible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user