make sure UserActions are not serialized

This commit is contained in:
Tim Young 2018-10-05 12:47:18 -05:00
parent 47790c1de1
commit c25e3fd666
1 changed files with 12 additions and 0 deletions

View File

@ -38,6 +38,7 @@ namespace EduNetworkBuilder
public string LastTrans1Lang = "";
public string LastTrans2Lang = "";
public string FormLastTransDir = "";
[XmlIgnore] //it is protected so it should not be serialized anyway.
protected ActionCollection UserActions = new ActionCollection();
[XmlIgnore]
public bool ReplayMode = false; //Whether or not we are able to do replays
@ -367,6 +368,17 @@ namespace EduNetworkBuilder
Properties.Settings.Default.ScoreList.Add(One);
}
Properties.Settings.Default.PuzzlesFailed.Clear();
foreach (string One in PuzzlesFailed)
{
Properties.Settings.Default.PuzzlesFailed.Add(One);
}
Properties.Settings.Default.PuzzlesPassed.Clear();
foreach (string One in PuzzlesPassed)
{
Properties.Settings.Default.PuzzlesPassed.Add(One);
}
Properties.Settings.Default.Save();
}
}