Get Action list to save

This commit is contained in:
2018-05-14 08:05:56 -05:00
parent 048d461894
commit 76b87b0d18
11 changed files with 41 additions and 9 deletions

View File

@ -2858,14 +2858,28 @@ namespace EduNetworkBuilder
}
}
private void storeReplayToolStripMenuItem_Click(object sender, EventArgs e)
private void storeReplayToolStripMenuItem_Click(object sender, EventArgs e)
{
StoreReplay();
}
void SaveReplayFile()
{
NBSettings ourSettings = NB.GetSettings();
if (OurSettings != null && OurSettings.ReplayMode)
{
ActionCollection AC = OurSettings.GetUserActionCollection();
if (AC.HasUnsavedChanges)
{
ourSettings.SaveActions();
}
}
}
private void saveReplayToolStripMenuItem_Click(object sender, EventArgs e)
{
SaveReplayFile();
}
}
}