예제 #1
0
 public void OnInvalidCommand(InvalidCommandEventArgs args)
 {
     if (InvalidCommand != null)
     {
         InvalidCommand(this.UserWrapper, args);
     }
 }
예제 #2
0
        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
        }