Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 private void chatBox1_MessageReady(object sender, MessageEventArgs e)
 {
     this.client.SendMessage(string.Concat("/w ", OtherPerson, " ", e.Message));
 }
Esempio n. 4
0
 /// <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);
 }