예제 #1
0
 public void CloseWinVideo()
 {
     if (this.isreturn == false || this.IsReturn == false)
     {
         Dispatcher.Invoke(new Action(() =>
         {
             if (video != null)
             {
                 video.Dispose();
                 video = null;
             }
             this.Height   = win7OHeight;
             this.Width    = iWinWidth;
             host.Child    = null;
             src           = src.Replace("VideoCall;", ""); //modify by 00327190  2015/8/12
             strtemp       = src;
             model.IsVideo = false;
             if (lync != null)   //if (lync!=null && lync.Ishold == false)   //2015/8/5  视屏情况下保持呼叫,isHold 为true ,此时不可以让加人按钮可用
             {
                 if (callType == CallHistoryType.HISTORY_CALL_DIALED)
                 {
                     btnAddContact.IsEnabled = true;
                 }
             }
             if (lync.Ishold == true || lync.IsBlindTrans == true)  //2015/8/18  视屏情况下保持呼叫或者转移失败,isHold 为true ,此时不可以让加人按钮可用
             {
                 btnAddContact.IsEnabled     = false;
                 btnBlindTransCall.IsEnabled = false;
                 if (lync.IsBlindTrans == true)//2015/8/25  只要是盲转,则以下按钮都不能用
                 {
                     btnCallSuspend.IsEnabled = false;
                     btnVideo.IsEnabled       = false;
                 }
             }
             //modify by 00327190   2015/7/16
             if (btnVideo.IsEnabled == false)
             {
                 UpdateImage.UpdateData(imgVideo, "/Image/call/video_3.png");
             }
             else
             {
                 if (lync.toolBar.JointType == PhoneJointType.IPPhone_Device)
                 {
                     UpdateImage.UpdateData(imgVideo, "/Image/call/video_3.png");
                 }
                 else
                 {
                     UpdateImage.UpdateData(imgVideo, "/Image/call/video_1.png");
                 }
             }
             this.UpdateLayout();
             lync.IsBlindTrans = false;
         }));
     }
 }
예제 #2
0
        public void SetUCVideo()
        {
            Dispatcher.Invoke(new Action(() =>
            {
                video = new UCVideo();
                video.Show();

                host.Child = video;
                btnAddContact.IsEnabled = false;
            }));
        }