private void RegisterCommands() { _commands.Add(new Command("LoginUser", "\\login", () => LoginUser?.Invoke(this, new EventArgs()))); _commands.Add(new Command("LogoutUser", "\\logout", () => LogoutUser?.Invoke(this, new EventArgs()))); _commands.Add(new Command("ClearConsole", "\\clear", () => ClearConsole?.Invoke(this, new EventArgs()))); _commands.Add(new Command("ShowUsers", "\\whois", () => ShowUsers?.Invoke(this, new EventArgs()))); _commands.Add(new Command("JoinChat", "\\join", () => JoinChat?.Invoke(this, new EventArgs()))); }