protected virtual void OnCommandError(CommandErrorType errorType, string error) { CommandError?.Invoke(this, new CommandErrorEventArgs(errorType, error)); }