public void OnInvalidCommand(InvalidCommandEventArgs args) { if (InvalidCommand != null) { InvalidCommand(this.UserWrapper, args); } }
private void Execute(string input) { if (input.Length > 0) { if (!this.ExecuteMethod(input)) { InvalidCommandEventArgs e = new InvalidCommandEventArgs(input); OnInvalidCommand(e); if (e.ReturnString != null || e.ReturnString != "") { SendReply(e.ReturnString); } } } //// Null results means that we have an invalid command }