コード例 #1
0
 /// <summary>
 /// 连接结束事件
 /// </summary>
 /// <param name="result"></param>
 private void OnConnectEnded(ConnectResult result)
 {
     if (result == ConnectResult.Succeed)
     {
         ConnectEnded?.Invoke(new Result(baseResult.Successful));
     }
     else
     {
         ConnectEnded?.Invoke(new Result(baseResult.Faild, result.ToString()));
     }
 }
コード例 #2
0
 void whiteBoardConnector1_ConnectEnded(ConnectResult result)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new CbGeneric <ConnectResult>(this.whiteBoardConnector1_ConnectEnded), result);
     }
     else
     {
         if (result != ConnectResult.Succeed)
         {
             MessageBox.Show("连接失败!" + result.ToString());
             return;
         }
     }
 }
コード例 #3
0
 void whiteBoardConnector1_ConnectEnded(ConnectResult result)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new CbGeneric<ConnectResult>(this.whiteBoardConnector1_ConnectEnded), result);
     }
     else
     {
         if (result != ConnectResult.Succeed)
         {
             MessageBox.Show("连接失败!" + result.ToString());
             return;
         }
     }
 }
コード例 #4
0
 void microphoneConnector1_ConnectEnded(ConnectResult res)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new CbGeneric <ConnectResult>(this.microphoneConnector1_ConnectEnded), res);
     }
     else
     {
         if (res != ConnectResult.Succeed)
         {
             this.label_error2.Visible = true;
             this.label_error2.Text    = res.ToString();
         }
         else
         {
             this.label_error2.Visible = false;
         }
     }
 }
コード例 #5
0
 void cameraConnector1_ConnectEnded(ConnectResult res)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new CbGeneric <ConnectResult>(this.cameraConnector1_ConnectEnded), res);
     }
     else
     {
         if (res != ConnectResult.Succeed)
         {
             this.label_error.Visible = true;
             this.label_error.Text    = res.ToString();
         }
         else
         {
             this.label_error.Visible = false;
         }
         this.label_info.Visible = false;
         this.Cursor             = Cursors.Default;
     }
 }
コード例 #6
0
        private void dynamicCameraConnector1_ConnectEnded(ConnectResult res)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new CbGeneric <ConnectResult>(this.dynamicCameraConnector1_ConnectEnded), res);
            }
            else
            {
                try
                {
                    this.skinPanel_tool.Visible = true;
                    this.skinLabel_tip.Visible  = false;
                    this.timerLabel1.Start();

                    if (res == ConnectResult.Succeed)
                    {
                        this.skinCheckBox_HighR.Visible = true;

                        int sum   = this.dynamicCameraConnector1.VideoSize.Width + this.dynamicCameraConnector1.VideoSize.Height;
                        int delt1 = Math.Abs(sum - GlobalConsts.CommonQualityVideo);
                        int delt2 = Math.Abs(sum - GlobalConsts.HighQualityVideo);

                        this.skinCheckBox_HighR.CheckState = delt2 < delt1 ? CheckState.Checked : CheckState.Unchecked;

                        this.button_record.Visible = true;
                    }
                    else
                    {
                        this.skinCheckBox_HighR.Visible    = false;
                        this.skinLabel_cameraError.Text    = res.ToString();
                        this.skinLabel_cameraError.Visible = true;
                    }
                }
                catch (Exception ee)
                {
                    GlobalResourceManager.Logger.Log(ee, "dynamicCameraConnector1_ConnectEnded", ESBasic.Loggers.ErrorLevel.Standard);
                    MessageBox.Show(ee.Message + " - " + ee.StackTrace);
                }
            }
        }
コード例 #7
0
ファイル: VideoForm.cs プロジェクト: GamesDesignArt/GGTalk
        private void dynamicCameraConnector1_ConnectEnded(ConnectResult res)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new CbGeneric<ConnectResult>(this.dynamicCameraConnector1_ConnectEnded), res);
            }
            else
            {
                try
                {
                    this.skinPanel_tool.Visible = true;
                    this.skinLabel_tip.Visible = false;
                    this.timerLabel1.Start();

                    if (res == ConnectResult.Succeed)
                    {
                        this.skinCheckBox_HighR.Visible = true;

                        int sum = this.dynamicCameraConnector1.VideoSize.Width + this.dynamicCameraConnector1.VideoSize.Height;
                        int delt1 = Math.Abs(sum - GlobalConsts.CommonQualityVideo);
                        int delt2 = Math.Abs(sum - GlobalConsts.HighQualityVideo);

                        this.skinCheckBox_HighR.CheckState = delt2 < delt1 ? CheckState.Checked : CheckState.Unchecked;

                        this.button_record.Visible = true;
                    }
                    else
                    {
                        this.skinCheckBox_HighR.Visible = false;
                        this.skinLabel_cameraError.Text = res.ToString();
                        this.skinLabel_cameraError.Visible = true;
                    }
                }
                catch (Exception ee)
                {
                    GlobalResourceManager.Logger.Log(ee, "dynamicCameraConnector1_ConnectEnded", ESBasic.Loggers.ErrorLevel.Standard);
                    MessageBox.Show(ee.Message + " - " + ee.StackTrace);
                }
            }
        }
コード例 #8
0
 void microphoneConnector1_ConnectEnded(ConnectResult res)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new CbGeneric<ConnectResult>(this.microphoneConnector1_ConnectEnded), res);
     }
     else
     {
         if (res != ConnectResult.Succeed)
         {
             this.label_error2.Visible = true;
             this.label_error2.Text = res.ToString();
         }
         else
         {
             this.label_error2.Visible = false;
         }
     }
 }
コード例 #9
0
 void cameraConnector1_ConnectEnded(ConnectResult res)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new CbGeneric<ConnectResult>(this.cameraConnector1_ConnectEnded), res);
     }
     else
     {
         if (res != ConnectResult.Succeed)
         {
             this.label_error.Visible = true;
             this.label_error.Text = res.ToString();
         }
         else
         {
             this.label_error.Visible = false;
         }
         this.label_info.Visible = false;
         this.Cursor = Cursors.Default;
     }
 }