コード例 #1
0
        private void DeclineCommandProcess()
        {
            isAnswerMessage = false;
            if (!isVideo)
            {
                callBusiness.RejectCall();  //超时不做这个动作,只关界面   2015/7/28
            }
            else
            {
                MakeCallBusiness bus = new MakeCallBusiness();
                bus.RejectVideoCall();
            }
            winCallReceive.isCloseButton = false;

            //7/27
            winCallReceive.lync.setBtn();   //先设置图形
            //if (winCallReceive.lync.toolBar.JointType == PhoneJointType.PC_Device)
            //{
            //    if (winCallReceive.lync.winCall.btnVideo.IsEnabled == false)
            //    {
            //        winCallReceive.lync.winCall.btnVideo.IsEnabled = true;
            //        UpdateImage.UpdateData(winCallReceive.lync.winCall.imgVideo, "/Image/call/video_1.png");
            //    }

            //}

            if (winCallReceive.Visibility == Visibility.Visible)
            {
                winCallReceive.Close();
                winCallReceive.lync.isHave = false;
            }
            string name = StringHelper.GetSubString(winCallReceive.callName);
            string url  = StringHelper.GetLyncUrl(name);

            HistoryQueryBusiness query = new HistoryQueryBusiness();

            query.InsertCallHistory(CallHistoryType.HISTORY_CALL_MISSED, url, name, -1);
        }