public void Freeze()
{
if (ViewModelBase.IsDetached) return;
Application.Current.Dispatcher.Invoke((ThreadStart)delegate()
{
_ResetAll();
foreach (var skillCommand in SkillCommands)
{
if (skillCommand is GuHuoSkillCommand)
{
(skillCommand as GuHuoSkillCommand).GuHuoTypes.Clear();
}
skillCommand.IsHighlighted = false;
}
if (currentUsageVerifier != null)
{
currentUsageVerifier = null;
}
else if (IsCardChoiceQuestionShown)
{
_AbortCardChoice();
}
else if (IsMultiChoiceQuestionShown)
{
_AbortMultipleChoice();
}
});
}