private void connectorOnConversationStarted(object sender, ConversationEventArgs eventArgs) { updateGuiConversationStarted(); _recordFileName = Settings.Current.GetRawFileName(eventArgs.CallerName); startRecording(); }
private void OnConversationClosed(object sender, ConversationEventArgs e) { if (ServiceManager.Instance.Dispatcher.Thread != Thread.CurrentThread) { ServiceManager.Instance.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new EventHandler <ConversationEventArgs>(OnConversationClosed), sender, new object[] { e }); return; } VATRPContact contact = e.Conversation.Contact; if (contact != null) { if (ChatViewContact != null && ChatViewContact.Contact == e.Conversation.Contact) { ChatViewContact = null; } RemoveContact(contact); if (this.Chat == e.Conversation) { this._chat = null; MessagesListView = null; } OnPropertyChanged("Chat"); } }
private void OnNewConversationCreated(object sender, ConversationEventArgs e) { if (ServiceManager.Instance.Dispatcher.Thread != Thread.CurrentThread) { ServiceManager.Instance.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new EventHandler <ConversationEventArgs>(OnNewConversationCreated), sender, new object[] { e }); return; } }
protected virtual void OnConversationOpened(object sender, ConversationEventArgs e) { EventHandler <ConversationEventArgs> handler = ConversationOpened; if (handler != null) { handler(sender, e); } }
private void ConversationCreated(Messenger sender, ConversationEventArgs e) { // we request a conversation or were asked one. Now log this Console.Text = "Conversation object created\r\n"; // remember there are not yet users in the conversation (except ourselves) // they will join _after_ this event. We create another callback to handle this. // When user(s) have joined we can start sending messages. e.Conversation.ContactJoin += new Conversation.ContactJoinHandler(ContactJoined); // log the event when the two clients are connected e.Conversation.ConnectionEstablished += new Conversation.ConnectionEstablishedHandler(ConnectionEstablished); // notify us when the other contact is typing something e.Conversation.UserTyping += new Conversation.UserTypingHandler(ContactTyping); //exchange messages e.Conversation.MessageReceived += new Conversation.MessageReceivedHandler(OnConversationReceived); }
private void updateGuiConversationEnded(object sender, ConversationEventArgs eventArgs) { updateStartCancelRecordMenuItems(false, false); }
private void OnNewConversationCreated(object sender, ConversationEventArgs e) { if (ServiceManager.Instance.Dispatcher.Thread != Thread.CurrentThread) { ServiceManager.Instance.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new EventHandler<ConversationEventArgs>(OnNewConversationCreated), sender, new object[] { e }); return; } }
private void OnConversationClosed(object sender, ConversationEventArgs e) { if (ServiceManager.Instance.Dispatcher.Thread != Thread.CurrentThread) { ServiceManager.Instance.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new EventHandler<ConversationEventArgs>(OnConversationClosed), sender, new object[] { e }); return; } VATRPContact contact = e.Conversation.Contact; if (contact != null) { if (_contactViewModel != null && _contactViewModel.Contact == e.Conversation.Contact) { _contactViewModel = null; } RemoveContact(contact); if (this.Chat == e.Conversation) { this._chat = null; MessagesListView = null; } OnPropertyChanged("Chat"); } }
private void msnMessenger_ConversationCreated(Messenger sender, ConversationEventArgs e) { //MessageBox.Show("New conversation: " + e.Conversation.Messenger.Owner.Name); // remember there are not yet users in the conversation (except ourselves) // they will join _after_ this event. We create another callback to handle this. // When user(s) have joined we can start sending messages. //e.Conversation.ContactJoin +=new DotMSN.Conversation.ContactJoinHandler(Conversation_ContactJoin); // log the event when the two clients are connected //e.Conversation.ConnectionEstablished += new DotMSN.Conversation.ConnectionEstablishedHandler(Conversation_ConnectionEstablished); if(e.Conversation.ClientData != null) { string mail = e.Conversation.ClientData as string; //MessageBox.Show(mail); this.GetMessageForm(mail).SetConversation(e.Conversation); } else { e.Conversation.MessageReceived += new DotMSN.Conversation.MessageReceivedHandler(Conversation_MessageReceived); } //this.Invoke(new NewMsnMessageFormDelegate(this.NewMsnMessageForm), new object [] {e.Conversation, null} ); // notify us when the other contact is typing something //e.Conversation.UserTyping += // we want to be accept filetransfer invitations //e.Conversation.FileTransferHandler.InvitationReceived += }
internal void OnConversationUpdated(object sender, ConversationEventArgs args) { ConversationUpdated.Raise(sender, args); }
private void ConversationCreated(Messenger sender, ConversationEventArgs e) { // we request a conversation or were asked one. Now log this _internalLog += "Conversation object created\r\n"; e.Conversation.ContactJoin += new Conversation.ContactJoinHandler(ContactJoined); // log the event when the two clients are connected e.Conversation.ConnectionEstablished += new Conversation.ConnectionEstablishedHandler(ConnectionEstablished); }