void RestoreIfPrevious(IWebServiceSource value) { if (IsAPreviousValue(value) && _selectedSource != null) { RestorePreviousValues(value); SetSelectedSource(value); } else { SetSelectedSource(value); SourceChangedAction?.Invoke(); OnSomethingChanged(this); } var delegateCommand = EditSourceCommand as Microsoft.Practices.Prism.Commands.DelegateCommand; delegateCommand?.RaiseCanExecuteChanged(); _selectedSource = value; }
void RestoreIfPrevious(IPluginAction value) { if (IsAPreviousValue(value) && _selectedAction != null) { RestorePreviousValues(value); SetSelectedAction(value); } else { SetSelectedAction(value); SourceChangedAction?.Invoke(); OnSomethingChanged(this); } var delegateCommand = RefreshActionsCommand as Microsoft.Practices.Prism.Commands.DelegateCommand; delegateCommand?.RaiseCanExecuteChanged(); _selectedAction = value; }