private void IsAllowResetAndSolutionEvent_EA_SUB(bool obj) { _isAllowResetAndSolution = true; _isAllowShuffel = true; ResetCommand.RaiseCanExecuteChanged(); ShowSolutionCommand.RaiseCanExecuteChanged(); ShuffleCommand.RaiseCanExecuteChanged(); }
private void UpdateSettingModeEvent_EA_SUB(bool isSettings) { _isAllowShuffel = !isSettings; _isAllowResetAndSolution = !isSettings && _isAllowResetAndSolution; ResetCommand.RaiseCanExecuteChanged(); ShowSolutionCommand.RaiseCanExecuteChanged(); ShuffleCommand.RaiseCanExecuteChanged(); }
private void ShowSolution() { _isAllowShuffel = false; _isAllowResetAndSolution = false; ShuffleCommand.RaiseCanExecuteChanged(); ResetCommand.RaiseCanExecuteChanged(); ShowSolutionCommand.RaiseCanExecuteChanged(); _eventAggregator.GetEvent <ShowSolutionClickEvent>().Publish(true); }