/// <summary> /// Initializes a new instance of the <see cref="CommandMessage"/> class. /// </summary> /// <param name="parameters">The parameters<see cref="string"/>.</param> /// <param name="username">The username<see cref="string"/>.</param> public CommandMessage(string parameters, string username) { Parameters = parameters.Split(' ').ToList(); commandType = Command.IsCommand(Parameters[0]); Username = username; }
private void Button_Click(object sender, System.Windows.RoutedEventArgs e) { Console.WriteLine(Command.IsCommand("/setusername")); send(); }