// 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); }; }
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); }
private void messenger_ConversationCreated(object sender, ConversationCreatedEventArgs e) { Console.WriteLine("==>Conversation created"); _convs.Add(new RobotConversation(e.Conversation, this)); }
private static void Nameserver_ConvoCreated2(object sender, ConversationCreatedEventArgs e) { //TODO: Assert the message gets through properly. }
private static void msn_ConversationCreated(object sender, ConversationCreatedEventArgs e) { ThoughtWorks.CruiseControl.Core.Util.Log.Info(string.Format(@"MSN Publisher::Conversation created.")); }
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); }
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); } }
protected void OnConversationCreated(ConversationCreatedEventArgs e) { var handler = ConversationCreated; if (handler != null) handler(this, e); }
protected virtual void MessengerConversationCreated(object sender, ConversationCreatedEventArgs e) { e.Conversation.Switchboard.TextMessageReceived += SwitchboardTextMessageReceived; }