private void ClientForm_ButtonSendClicked(string data, bool e) { if (data.Contains(ChatConstants.Separator)) { MessageBox.Show("Your message has invalid symbols!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } ChatLogic.SendMessage(data); }
private void ClientForm_ChatCommandClicked(string data, bool e) { ChatLogic.SendMessage(data); }