make sure UserActions are not serialized
This commit is contained in:
parent
47790c1de1
commit
c25e3fd666
@ -38,6 +38,7 @@ namespace EduNetworkBuilder
|
|||||||
public string LastTrans1Lang = "";
|
public string LastTrans1Lang = "";
|
||||||
public string LastTrans2Lang = "";
|
public string LastTrans2Lang = "";
|
||||||
public string FormLastTransDir = "";
|
public string FormLastTransDir = "";
|
||||||
|
[XmlIgnore] //it is protected so it should not be serialized anyway.
|
||||||
protected ActionCollection UserActions = new ActionCollection();
|
protected ActionCollection UserActions = new ActionCollection();
|
||||||
[XmlIgnore]
|
[XmlIgnore]
|
||||||
public bool ReplayMode = false; //Whether or not we are able to do replays
|
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.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();
|
Properties.Settings.Default.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user