public WinCallReceive(WinLync lync, string name, bool isVide)
        {
            InitializeComponent();
            btnFinish.Visibility = Visibility.Hidden;
            imgOtherPhone.Visibility = Visibility.Hidden;
            txtOtherPhone.Visibility = Visibility.Hidden;
            callName = name;
            model = new WinCallReceiveViewModel(this, isVide);
            this.lync = lync;
            this.DataContext = model;
            this.Title = StringHelper.GetSubString(name);
            isvideo = isVide;
            if (isVide)
            {
                this.Height = 120;
            }
            else
            {
                imgType.Visibility = Visibility.Collapsed;
            }
            if (lync.isConnected == true)   //语音升级视频后再转移,此时expander不可见,espace无此种转移
            {
                this.expander.Visibility = Visibility.Hidden;
                //modify by 00327190  2015/7/27   语音升级视频时,未接受请求时,本地的视频升级按钮,加人按钮,呼叫保持按钮不能使用
                lync.winCall.btnVideo.IsEnabled = false;
                lync.winCall.btnAddContact.IsEnabled = false;
                lync.winCall.btnCallSuspend.IsEnabled = false;

            }
            WinLync.lyncCounter++;
            this.Left = SystemParameters.WorkArea.Width - this.Width;
            this.Top = SystemParameters.WorkArea.Height - this.Height;
            this.Closing += new System.ComponentModel.CancelEventHandler(WinCallReceive_Closing);
            this.Closed += new EventHandler((sender, e)
                =>
            {
                WinLync.lyncCounter--;
            });
            GetPhone();   //2015/7/28
            lync.isHave = true;
        }
Ejemplo n.º 2
0
        public bool isClose = false; //语音升级 视频升级方挂断后传递的值让接受方也挂断

        public WinCallReceive(WinLync lync, string name, bool isVide)
        {
            InitializeComponent();
            btnFinish.Visibility     = Visibility.Hidden;
            imgOtherPhone.Visibility = Visibility.Hidden;
            txtOtherPhone.Visibility = Visibility.Hidden;
            callName         = name;
            model            = new WinCallReceiveViewModel(this, isVide);
            this.lync        = lync;
            this.DataContext = model;
            this.Title       = StringHelper.GetSubString(name);
            isvideo          = isVide;
            if (isVide)
            {
                this.Height = 120;
            }
            else
            {
                imgType.Visibility = Visibility.Collapsed;
            }
            if (lync.isConnected == true)   //语音升级视频后再转移,此时expander不可见,espace无此种转移
            {
                this.expander.Visibility = Visibility.Hidden;
                //modify by 00327190  2015/7/27   语音升级视频时,未接受请求时,本地的视频升级按钮,加人按钮,呼叫保持按钮不能使用
                lync.winCall.btnVideo.IsEnabled       = false;
                lync.winCall.btnAddContact.IsEnabled  = false;
                lync.winCall.btnCallSuspend.IsEnabled = false;
            }
            WinLync.lyncCounter++;
            this.Left     = SystemParameters.WorkArea.Width - this.Width;
            this.Top      = SystemParameters.WorkArea.Height - this.Height;
            this.Closing += new System.ComponentModel.CancelEventHandler(WinCallReceive_Closing);
            this.Closed  += new EventHandler((sender, e)
                                             =>
            {
                WinLync.lyncCounter--;
            });
            GetPhone();   //2015/7/28
            lync.isHave = true;
        }