private void chat_MessageReady(object sender, MessageEventArgs e) { if (m_inChat) { if (e.Message.Length < 224) { m_client.SendMessage(e.Message); } } else { chat.AddChat(new ChatNode("You are not yet in chat!", Color.YellowGreen)); } }
/// <summary> /// Raises the <see>MessageChanged</see> event. /// </summary> /// <param name="e">The event arguments.</param> protected virtual void OnMessageChanged(MessageEventArgs e) { if (MessageChanged != null) MessageChanged(this, e); }
private void chatBox1_MessageReady(object sender, MessageEventArgs e) { this.client.SendMessage(string.Concat("/w ", OtherPerson, " ", e.Message)); }
/// <summary> /// Raises the <see>MessageReady</see> event. /// </summary> /// <param name="e">The event arguments.</param> protected virtual void OnMessageReady(MessageEventArgs e) { if (MessageReady != null) MessageReady(this, e); }