/// <summary> /// Starts a new meeting by using automation /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void StartMeeting_Button_Click_1(object sender, RoutedEventArgs e) { if (_Automation != null) { _Automation.BeginMeetNow((ar) => { _ConversationWindow = _Automation.EndMeetNow(ar); _Conversation = _ConversationWindow.Conversation; //Watch for changes in conference properties _Conversation.PropertyChanged += _Conversation_PropertyChanged; //MeetingRoster_Listbox //Add the user's name to the lobby listbox this.Dispatcher.Invoke( new LoadListBoxDelegate(LoadListBox), new object[] { MeetingRoster_Listbox, _Conversation.SelfParticipant.Contact.GetContactInformation(ContactInformationType.DisplayName).ToString() }); //Watch for participants added to meeting (Lobby) _Conversation.ParticipantAdded += _Conversation_ParticipantAdded; }, null); } }
private void button1_Click(object sender, RoutedEventArgs e) { Automation.BeginMeetNow(MeetNow_Callback, null); }