public static void ShowFullscreen(ConversationWindow window, int display) { window.ShowFullScreen(display); Show(window); ForceTop(window); }
private async void pollingLoop() { System.Net.Sockets.NetworkStream Stream = null; int byteCount = 0; byte[] buffer = new byte[4096]; while (btClient.Connected) { if (Stream == null) { Stream = btClient.GetStream(); } byteCount = await Stream.ReadAsync(buffer, 0, buffer.Length); String response = Encoding.UTF8.GetString(buffer, 0, byteCount); if (txtBTMsg.InvokeRequired == true) { Invoke(new MethodInvoker(delegate() { txtBTMsg.AppendText(response); })); } else { txtBTMsg.AppendText(response); } if (response.Contains(txtTrigCode.Text)) //"VideoCall\r\n")) { List <string> participantUri = new List <string>(); if (txtUserAlias.Text.Trim() != "") { participantUri.Add("sip:" + txtUserAlias.Text); LyncClient.GetAutomation().BeginStartConversation( AutomationModalities.Video, //AutomationModalities.Audio, participantUri, null, (ar) => { try { ConversationWindow newWindow = LyncClient.GetAutomation().EndStartConversation(ar); newWindow.ShowFullScreen(0); } catch (OperationException oe) { MessageBox.Show("Operation exception on start conversation " + oe.Message); }; }, null); } } else if (response.Contains(txtCapCode.Text)) { if (webcam1.InvokeRequired == true) { Invoke(new MethodInvoker(delegate() { webcam1.TimeToCapture_milliseconds = FrameNumber; webcam1.Start(0); bCapture = true; })); } //imgCapture.Image = imgVideo.Image; } } }