コード例 #1
0
 private void IsAllowResetAndSolutionEvent_EA_SUB(bool obj)
 {
     _isAllowResetAndSolution = true;
     _isAllowShuffel          = true;
     ResetCommand.RaiseCanExecuteChanged();
     ShowSolutionCommand.RaiseCanExecuteChanged();
     ShuffleCommand.RaiseCanExecuteChanged();
 }
コード例 #2
0
 private void UpdateSettingModeEvent_EA_SUB(bool isSettings)
 {
     _isAllowShuffel          = !isSettings;
     _isAllowResetAndSolution = !isSettings && _isAllowResetAndSolution;
     ResetCommand.RaiseCanExecuteChanged();
     ShowSolutionCommand.RaiseCanExecuteChanged();
     ShuffleCommand.RaiseCanExecuteChanged();
 }
コード例 #3
0
 private void ShowSolution()
 {
     _isAllowShuffel          = false;
     _isAllowResetAndSolution = false;
     ShuffleCommand.RaiseCanExecuteChanged();
     ResetCommand.RaiseCanExecuteChanged();
     ShowSolutionCommand.RaiseCanExecuteChanged();
     _eventAggregator.GetEvent <ShowSolutionClickEvent>().Publish(true);
 }