private void ExecuteNumChangeCommand() { this.RemainderCount = Model.Sudoku.RemainderCount(this.Riddle); if (this.RemainderCount == 0) { this.TimerState = CalculagraphState.Stop; Utility.ShowMessage("Congratulations! You have completed this sudoku.", MessageKind.General, "Start New", this.ExecuteNewGameCommand); this.endTime = DateTime.Now; this.LoadFinished = false; PerformanceOperation.SaveGeneral( new PerformanceModel() { CallHelpTimes = this.callHelpTimes, EndTime = this.endTime, StartTime = this.startTime, GameMode = GameMode.General, SudokuResult = this.Riddle, Player = AppSetting.Settings.SudokuUser, }); } }
public PerformanceViewModel() { this.Performances = this.GetRanged(PerformanceOperation.GetGeneral()); this.SelectedItem = this.Performances.FirstOrDefault(); }