Ejemplo n.º 1
0
//        private void _OnReadText(xobject sender, string text)
//        {
//                Session.AddTextToChat(_NetworkChat, "-!- RECV: " + text);
//        }

//        private void _OnWriteText(xobject sender, string text)
//        {
//                Session.AddTextToChat(_NetworkChat, "-!- SENT: " + text);
//        }


        private void MsnClient_ConversationCreated(object sender, ConversationCreatedEventArgs e)
        {
            Trace.Call(sender, e);



            // Session.AddTextToChat(_NetworkChat, "Conversation bla");
            //e.Conversation.Switchboard.Co
            //_MsnClient.Nameserver.RequestScreenName();

            // NetworkChatModel nchat = new NetworkChatModel("MSN", "MSN", this);
            //Session.AddChat(nchat);

            e.Conversation.Switchboard.TextMessageReceived += delegate(object sender2, TextMessageEventArgs e2) {
                PersonModel person = new PersonModel(e2.Sender.Name,
                                                     e2.Sender.Name,
                                                     NetworkID, Protocol,
                                                     this);
                PersonChatModel personChat = new PersonChatModel(person,
                                                                 e2.Sender.Name,
                                                                 e2.Sender.Name,
                                                                 this);
                Session.AddChat(personChat);
                Session.AddTextToChat(personChat, e2.Message.Text);
            };
        }
Ejemplo n.º 2
0
 static void messenger_ConversationCreated(object sender, ConversationCreatedEventArgs e)
 {
     e.Conversation.Switchboard.TextMessageReceived += new TextMessageReceivedEventHandler(Switchboard_TextMessageReceived);
     e.Conversation.Switchboard.ContactJoined       += new ContactChangedEventHandler(Switchboard_ContactJoined);
     e.Conversation.Switchboard.ContactLeft         += new ContactChangedEventHandler(Switchboard_ContactLeft);
     e.Conversation.Switchboard.SessionClosed       += new SBChangedEventHandler(Switchboard_SessionClosed);
     e.Conversation.Switchboard.UserTyping          += new UserTypingEventHandler(Switchboard_UserTyping);
 }
Ejemplo n.º 3
0
 private void messenger_ConversationCreated(object sender, ConversationCreatedEventArgs e)
 {
     Console.WriteLine("==>Conversation created");
     _convs.Add(new RobotConversation(e.Conversation, this));
 }
Ejemplo n.º 4
0
        //        private void _OnReadText(xobject sender, string text)
        //        {
        //                Session.AddTextToChat(_NetworkChat, "-!- RECV: " + text);
        //        }
        //        private void _OnWriteText(xobject sender, string text)
        //        {
        //                Session.AddTextToChat(_NetworkChat, "-!- SENT: " + text);
        //        }
        private void MsnClient_ConversationCreated(object sender, ConversationCreatedEventArgs e)
        {
            Trace.Call(sender, e);

            // Session.AddTextToChat(_NetworkChat, "Conversation bla");
            //e.Conversation.Switchboard.Co
            //_MsnClient.Nameserver.RequestScreenName();

            // NetworkChatModel nchat = new NetworkChatModel("MSN", "MSN", this);
             //Session.AddChat(nchat);

            e.Conversation.Switchboard.TextMessageReceived +=  delegate(object sender2, TextMessageEventArgs e2) {
                PersonModel person = new PersonModel(e2.Sender.Name,
                                                     e2.Sender.Name,
                                                     NetworkID, Protocol,
                                                     this);
                PersonChatModel personChat = new PersonChatModel(person,
                                                                 e2.Sender.Name,
                                                                 e2.Sender.Name,
                                                                 this);
                Session.AddChat(personChat);
                Session.AddTextToChat(personChat, e2.Message.Text);
             };
        }
Ejemplo n.º 5
0
 private static void Nameserver_ConvoCreated2(object sender, ConversationCreatedEventArgs e)
 {
     //TODO:  Assert the message gets through properly.
 }
Ejemplo n.º 6
0
 static void messenger_ConversationCreated(object sender, ConversationCreatedEventArgs e)
 {
     e.Conversation.Switchboard.TextMessageReceived += new TextMessageReceivedEventHandler(Switchboard_TextMessageReceived);
     e.Conversation.Switchboard.ContactJoined += new ContactChangedEventHandler(Switchboard_ContactJoined);
     e.Conversation.Switchboard.ContactLeft += new ContactChangedEventHandler(Switchboard_ContactLeft);
     e.Conversation.Switchboard.SessionClosed += new SBChangedEventHandler(Switchboard_SessionClosed);
     e.Conversation.Switchboard.UserTyping += new UserTypingEventHandler(Switchboard_UserTyping);
 }
Ejemplo n.º 7
0
 private static void msn_ConversationCreated(object sender, ConversationCreatedEventArgs e)
 {
     ThoughtWorks.CruiseControl.Core.Util.Log.Info(string.Format(@"MSN Publisher::Conversation created."));
 }
Ejemplo n.º 8
0
 void m_messenger_ConversationCreated(object sender, ConversationCreatedEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("conversation created!");
     if(e.Initiator == null)
         e.Conversation.ContactJoined += new EventHandler<ContactEventArgs>(Conversation_ContactJoined);
 }
Ejemplo n.º 9
0
Archivo: MSN.cs Proyecto: charuwat/code
 private void messenger_ConversationCreated(object sender, ConversationCreatedEventArgs e)
 {
     // check if the request is initiated remote or by this object
     // if it is initiated remote then we have to create a conversation form. Otherwise the
     // form is already created and we don't need to create another one.
     if (e.Initiator == null)
     {
         CreateChatSession(e.Conversation);
     }
 }
Ejemplo n.º 10
0
 protected void OnConversationCreated(ConversationCreatedEventArgs e)
 {
     var handler = ConversationCreated;
     if (handler != null)
         handler(this, e);
 }
Ejemplo n.º 11
0
 protected virtual void MessengerConversationCreated(object sender, ConversationCreatedEventArgs e)
 {
     e.Conversation.Switchboard.TextMessageReceived += SwitchboardTextMessageReceived;
 }