/// <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())); } }
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; } } }
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; } } }
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; } } }
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; } }
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); } } }
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); } } }
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; } } }
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; } }