/// <summary> /// Handles the Executed event of the DealNewGameCommand control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="args">The <see cref="Apex.MVVM.CommandEventArgs"/> instance containing the event data.</param> void SpiderDealNewGameCommand_Executing(object sender, CancelCommandEventArgs args) { // If we've made any moves, update the stats. if (SpiderSolitaireViewModel.Moves > 0) { SpiderSolitaireStatistics.UpdateStatistics(SpiderSolitaireViewModel); } Save(); }
/// <summary> /// Called when Spider is won. /// </summary> void SpiderSolitaireViewModel_GameWon() { // The game was won, update the stats. SpiderSolitaireStatistics.UpdateStatistics(KlondikeSolitaireViewModel); Save(); }