Add file -> forget replay statuses. So we can reset our replays.

This commit is contained in:
Tim Young 2018-10-05 13:24:47 -05:00
parent d838fe1987
commit 92246a3dac
2 changed files with 28 additions and 11 deletions

View File

@ -82,6 +82,7 @@
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.forgetReplayStatusesToolStripMenuItem = 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();
@ -111,10 +112,11 @@
this.reloadToolStripMenuItem, this.reloadToolStripMenuItem,
this.saveToolStripMenuItem, this.saveToolStripMenuItem,
this.logoutToolStripMenuItem, this.logoutToolStripMenuItem,
this.exitToolStripMenuItem,
this.replayToolStripMenuItem, this.replayToolStripMenuItem,
this.storeReplayToolStripMenuItem, this.storeReplayToolStripMenuItem,
this.saveReplayToolStripMenuItem}); this.saveReplayToolStripMenuItem,
this.forgetReplayStatusesToolStripMenuItem,
this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24); this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
this.fileToolStripMenuItem.Text = "File"; this.fileToolStripMenuItem.Text = "File";
@ -123,63 +125,63 @@
// newToolStripMenuItem // newToolStripMenuItem
// //
this.newToolStripMenuItem.Name = "newToolStripMenuItem"; this.newToolStripMenuItem.Name = "newToolStripMenuItem";
this.newToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.newToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
this.newToolStripMenuItem.Text = "New"; this.newToolStripMenuItem.Text = "New";
this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click); this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
// //
// loadToolStripMenuItem // loadToolStripMenuItem
// //
this.loadToolStripMenuItem.Name = "loadToolStripMenuItem"; this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
this.loadToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.loadToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
this.loadToolStripMenuItem.Text = "Load"; this.loadToolStripMenuItem.Text = "Load";
this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click); this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
// //
// reloadToolStripMenuItem // reloadToolStripMenuItem
// //
this.reloadToolStripMenuItem.Name = "reloadToolStripMenuItem"; this.reloadToolStripMenuItem.Name = "reloadToolStripMenuItem";
this.reloadToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.reloadToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
this.reloadToolStripMenuItem.Text = "Reload"; this.reloadToolStripMenuItem.Text = "Reload";
this.reloadToolStripMenuItem.Click += new System.EventHandler(this.reloadToolStripMenuItem_Click); this.reloadToolStripMenuItem.Click += new System.EventHandler(this.reloadToolStripMenuItem_Click);
// //
// saveToolStripMenuItem // saveToolStripMenuItem
// //
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
this.saveToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.saveToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
this.saveToolStripMenuItem.Text = "Save"; this.saveToolStripMenuItem.Text = "Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
// //
// logoutToolStripMenuItem // logoutToolStripMenuItem
// //
this.logoutToolStripMenuItem.Name = "logoutToolStripMenuItem"; this.logoutToolStripMenuItem.Name = "logoutToolStripMenuItem";
this.logoutToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.logoutToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
this.logoutToolStripMenuItem.Text = "Logout"; this.logoutToolStripMenuItem.Text = "Logout";
this.logoutToolStripMenuItem.Click += new System.EventHandler(this.logoutToolStripMenuItem_Click); this.logoutToolStripMenuItem.Click += new System.EventHandler(this.logoutToolStripMenuItem_Click);
// //
// exitToolStripMenuItem // exitToolStripMenuItem
// //
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.exitToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
this.exitToolStripMenuItem.Text = "Exit"; this.exitToolStripMenuItem.Text = "Exit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
// //
// replayToolStripMenuItem // replayToolStripMenuItem
// //
this.replayToolStripMenuItem.Name = "replayToolStripMenuItem"; this.replayToolStripMenuItem.Name = "replayToolStripMenuItem";
this.replayToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.replayToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
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 // storeReplayToolStripMenuItem
// //
this.storeReplayToolStripMenuItem.Name = "storeReplayToolStripMenuItem"; this.storeReplayToolStripMenuItem.Name = "storeReplayToolStripMenuItem";
this.storeReplayToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.storeReplayToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
this.storeReplayToolStripMenuItem.Text = "Store Replay"; this.storeReplayToolStripMenuItem.Text = "Store Replay";
this.storeReplayToolStripMenuItem.Click += new System.EventHandler(this.storeReplayToolStripMenuItem_Click); this.storeReplayToolStripMenuItem.Click += new System.EventHandler(this.storeReplayToolStripMenuItem_Click);
// //
// saveReplayToolStripMenuItem // saveReplayToolStripMenuItem
// //
this.saveReplayToolStripMenuItem.Name = "saveReplayToolStripMenuItem"; this.saveReplayToolStripMenuItem.Name = "saveReplayToolStripMenuItem";
this.saveReplayToolStripMenuItem.Size = new System.Drawing.Size(181, 26); this.saveReplayToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
this.saveReplayToolStripMenuItem.Text = "Save Replay"; this.saveReplayToolStripMenuItem.Text = "Save Replay";
this.saveReplayToolStripMenuItem.Click += new System.EventHandler(this.saveReplayToolStripMenuItem_Click); this.saveReplayToolStripMenuItem.Click += new System.EventHandler(this.saveReplayToolStripMenuItem_Click);
// //
@ -571,6 +573,13 @@
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;
// //
// forgetReplayStatusesToolStripMenuItem
//
this.forgetReplayStatusesToolStripMenuItem.Name = "forgetReplayStatusesToolStripMenuItem";
this.forgetReplayStatusesToolStripMenuItem.Size = new System.Drawing.Size(234, 26);
this.forgetReplayStatusesToolStripMenuItem.Text = "Forget Replay Statuses";
this.forgetReplayStatusesToolStripMenuItem.Click += new System.EventHandler(this.forgetReplayStatusesToolStripMenuItem_Click);
//
// BuilderWindow // BuilderWindow
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@ -662,6 +671,7 @@
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; private System.Windows.Forms.ToolStripMenuItem regressionTestingToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem forgetReplayStatusesToolStripMenuItem;
} }
} }

View File

@ -82,6 +82,7 @@ namespace EduNetworkBuilder
copyToolStripMenuItem.Visible = false; copyToolStripMenuItem.Visible = false;
pasteToolStripMenuItem.Visible = false; pasteToolStripMenuItem.Visible = false;
undoToolStripMenuItem.Visible = false; undoToolStripMenuItem.Visible = false;
forgetReplayStatusesToolStripMenuItem.Visible = false;
myTooltip.AutoPopDelay = 5000; myTooltip.AutoPopDelay = 5000;
myTooltip.InitialDelay = 1000; myTooltip.InitialDelay = 1000;
@ -2916,6 +2917,7 @@ namespace EduNetworkBuilder
if (OurSettings != null && OurSettings.ReplayMode) if (OurSettings != null && OurSettings.ReplayMode)
{ {
forgetReplayStatusesToolStripMenuItem.Visible = true;
ActionCollection AC = OurSettings.GetUserActionCollection(); ActionCollection AC = OurSettings.GetUserActionCollection();
if (AC != null) if (AC != null)
{ {
@ -2992,5 +2994,10 @@ namespace EduNetworkBuilder
regressionTestingToolStripMenuItem.Visible = false; regressionTestingToolStripMenuItem.Visible = false;
} }
} }
private void forgetReplayStatusesToolStripMenuItem_Click(object sender, EventArgs e)
{
OurSettings.ClearReplayStatus();
}
} }
} }