Exemple #1
0
      private void chatReceived(object sender, ChatReceivedEventArgs e)
      {
         if (e == null)
            return;

         // Old unformatted way.
         //m_chatWindow.AddChatText(e.Text);

         // Process the text into a fancy formatted paragraph.
         m_chatWindow.AddChatParagraph(e.Text, UrlExpression, LinkClick);
      }
Exemple #2
0
 private void chatReceived(object sender, ChatReceivedEventArgs e)
 {
    AddChat(e.Text);
 }
      // This controller class subscribes to the Server object's events using
      // these event handlers, and then bubble them up to the subscribing client.
      #region Incoming Transaction Event Handlers

      public void HandleChatReceived(object sender, ChatReceivedEventArgs e)
      {
         if (e != null)
         {
            HandleChatReceived(e.Text, e.Window, false);
         }
      }
 protected virtual void OnChatReceived(ChatReceivedEventArgs e)
 {
    if (ChatReceived != null)
       ChatReceived(this, e);
 }
Exemple #5
0
 private void Event_ChatReceived(object sender, ChatReceivedEventArgs e)
 {
    m_screen.WriteLine(e.Text.Trim());
 }