Get loading and saving of devices in Actions working. Lots of things needed to be "public" so reflection works.

This commit is contained in:
2018-05-16 09:14:18 -05:00
parent eab20232ca
commit 2df6c5c2f8
10 changed files with 608 additions and 33 deletions

View File

@ -2862,12 +2862,15 @@ namespace EduNetworkBuilder
if (OurSettings != null && OurSettings.ReplayMode)
{
ActionCollection AC = OurSettings.GetUserActionCollection();
if(AC != null && AC.GetActionCount >0)
replayToolStripMenuItem.Visible = true; //Only visible if we have something to replay
if (AC.CurrentNeedsStoring)
storeReplayToolStripMenuItem.Visible = true;
if (AC.HasUnsavedChanges)
saveReplayToolStripMenuItem.Visible = true;
if (AC != null)
{
if (AC.GetActionCount > 0)
replayToolStripMenuItem.Visible = true; //Only visible if we have something to replay
if (AC.CurrentNeedsStoring && AC.GetActionCount > 0)
storeReplayToolStripMenuItem.Visible = true;
if (AC.HasUnsavedChanges)
saveReplayToolStripMenuItem.Visible = true;
}
}
}