From 048d4618947f3cc7bcb9014ff8ff5493a68c7972 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 11 May 2018 10:57:54 -0500 Subject: [PATCH] StoreReplay --- EduNetworkBuilder/NetworkBuilder.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 1f3c92b..345ce61 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -2845,9 +2845,22 @@ namespace EduNetworkBuilder } } - private void storeReplayToolStripMenuItem_Click(object sender, EventArgs e) + void StoreReplay() { + NBSettings ourSettings = NB.GetSettings(); + if (OurSettings != null && OurSettings.ReplayMode) + { + ActionCollection AC = OurSettings.GetUserActionCollection(); + if(AC.CurrentNeedsStoring) + { + AC.PushActionToList(); + } + } + } + private void storeReplayToolStripMenuItem_Click(object sender, EventArgs e) + { + StoreReplay(); } private void saveReplayToolStripMenuItem_Click(object sender, EventArgs e)