示例#1
0
 public void ShowReceiveWin(STCallParam _callParam)    //显示视频被叫方的画面
 {
     Dispatcher.Invoke(new Action(() =>
     {
         WinCallReceive receive = new WinCallReceive(lync, _callParam.ucAcc + StringHelper.GetLyncDomainString(SingletonObj.LoginInfo.LyncName), true);
         receive.Show();
     }));
 }
 public WinCallReceiveViewModel(WinCallReceive window, bool video)
 {
     winCallReceive = window;
     isVideo        = video;
     AnswerCommand  = new DelegateCommand(AnswerCommandProcess);
     DeclineCommand = new DelegateCommand(DeclineCommandProcess);
     FinishCommand  = new DelegateCommand(FinishCommandProcess);
 }
 public WinCallReceiveViewModel(WinCallReceive window, bool video)
 {
     winCallReceive = window;
     isVideo = video;
     AnswerCommand = new DelegateCommand(AnswerCommandProcess);
     DeclineCommand = new DelegateCommand(DeclineCommandProcess);
     FinishCommand = new DelegateCommand(FinishCommandProcess);
 }
 /// <summary>
 /// 收到呼叫事件回调函数
 /// </summary>
 /// <param name="para"></param>
 void UCAVSessAdded(STAudioVideoParam para)
 {
     ////modify by jinyeqing 2015/5/19   由于锁屏或者呼叫产生奔溃时导致的 SingletonObj.LoginInfo.LyncName为空,所以加个判断条件,if和else 
     //if (SingletonObj.LoginInfo.LyncName != null || SingletonObj.LoginInfo.LyncName != "")
     //{
         LogManager.SystemLog.Debug(string.Format("callerAcc = {0}", para.callerAcc));
         LogManager.SystemLog.Debug(string.Format("LyncName = {0}", SingletonObj.LoginInfo.LyncName));
         string strBuffer = para.callerAcc;
         string str = "";
         if (para.AccountType == 0)
         {
             str = StringHelper.GetLyncDomainString(SingletonObj.LoginInfo.LyncName);
         }
         strBuffer = strBuffer + str;
         Dispatcher.BeginInvoke(new Action(() =>
         {
             receive = new WinCallReceive(this, strBuffer, para.isvideo_ == 1);
             //if (para.callMode == (int)MemberType.UC_IPPHONE)//iphones呼出来电时,不现实来电窗体  9/17
             //{
             //    receive.Left = iReceiveLeftOff;
             //}
             if (para.isConference == 1)      //来电是会议的时候,expander控件不可见,answer改为ConAnswer
             {
                 receive.expander.Visibility = Visibility.Hidden;
                 receive.btnAnswer.Content = StringHelper.FindLanguageResource("ConAnswer");                      
             }
             receive.Show();
         }));
        
     //}
     //else
     //{
     //    Dialog.Show(StringHelper.FindLanguageResource("PleaseLoginUCagain"), StringHelper.FindLanguageResource("error")); 
     //}
 }