public void MaxtriChangeCenter(studiom.MatrixChangeType matrixChangeType) { Studiom_Model.Constant.StudiomDataInstance.MatrixChange(matrixChangeType, new Action <string, string>((innerError, serverError) => { })); }
/// <summary> /// 投影座位1 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnSetting_Click(object sender, RoutedEventArgs e) { try { if (sender is NavicateButton) { NavicateButton navicateButton = (sender as NavicateButton); studiom.MatrixChangeType matrixChangeType = default(studiom.MatrixChangeType); if (this.outputType == 0) { matrixChangeType = (studiom.MatrixChangeType)(navicateButton.IntType * 2 - 2); } else if (this.outputType == 1) { matrixChangeType = (studiom.MatrixChangeType)(navicateButton.IntType * 2 - 1); } this.MaxtriChangeCenter(matrixChangeType); } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 切换到外接设备 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnOther_Click(object sender, RoutedEventArgs e) { try { studiom.MatrixChangeType matrixChangeType = (studiom.MatrixChangeType)((int)studiom.MatrixChangeType.ElevenToTwo - this.outputType); this.MaxtriChangeCenter(matrixChangeType); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 切屏中心辅助 /// </summary> /// <param name="matrixChangeType"></param> public void MaxtriChangeCenter(studiom.MatrixChangeType matrixChangeType) { try { Studiom_Model.Constant.StudiomDataInstance.MatrixChange_AboutTen(matrixChangeType, new Action <string, string>((st1, st2) => { })); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 投影座位1 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnSetting_Click(object sender, RoutedEventArgs e) { try { Button btn = (sender as Button); string UserName = Convert.ToString(btn.Content); ConferenceModel.ConferenceMatrixWebservice.ConferenceMatrixOutPut outputType = ConferenceModel.ConferenceMatrixWebservice.ConferenceMatrixOutPut.OutPut1; if (this.IsLargeScreen) { outputType = ConferenceModel.ConferenceMatrixWebservice.ConferenceMatrixOutPut.OutPut1; } else { outputType = ConferenceModel.ConferenceMatrixWebservice.ConferenceMatrixOutPut.OutPut2; } //矩阵应用 ModelManage.ConferenceMatrix.MatrixSetting(Constant.ConferenceName, UserName, outputType, new Action <bool>((successed) => { })); studiom.MatrixChangeType matrixChangeType = studiom.MatrixChangeType.OneToOne; if (btn.Tag != null) { if (this.IsLargeScreen) { matrixChangeType = GetSeatMatrixChangeType(Convert.ToInt32(btn.Tag), 0); } else { matrixChangeType = GetSeatMatrixChangeType(Convert.ToInt32(btn.Tag), 1); } } this.MaxtriChangeCenter(matrixChangeType); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 启动录播 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnRecord_Click(object sender, RoutedEventArgs e) { try { studiom.MatrixChangeType matrixChangeType = studiom.MatrixChangeType.OneToOne; if (this.IsLargeScreen) { matrixChangeType = studiom.MatrixChangeType.OneToOne; } else { matrixChangeType = studiom.MatrixChangeType.OneToTwo; } this.MaxtriChangeCenter(matrixChangeType); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 获取矩阵切换类型 /// </summary> /// <param name="seatNumber"></param> /// <param name="outputType"></param> /// <returns></returns> public studiom.MatrixChangeType GetSeatMatrixChangeType(int seatNumber, int outputType) { studiom.MatrixChangeType matrixChangeType = studiom.MatrixChangeType.OneToOne; try { if (seatNumber == 1 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.TwoToOne; } else if (seatNumber == 1 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.TwoToTwo; } else if (seatNumber == 2 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.ElevenToOne; } else if (seatNumber == 2 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.ElevenToTwo; } else if (seatNumber == 3 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.TenToOne; } else if (seatNumber == 3 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.TenToTwo; } else if (seatNumber == 4 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.NineToOne; } else if (seatNumber == 4 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.NineToTwo; } else if (seatNumber == 5 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.EightToOne; } else if (seatNumber == 5 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.EightToTwo; } else if (seatNumber == 6 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.SevenToOne; } else if (seatNumber == 6 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.SevenToTwo; } else if (seatNumber == 7 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.SixToOne; } else if (seatNumber == 7 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.SixToTwo; } else if (seatNumber == 8 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.FiveToOne; } else if (seatNumber == 8 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.FiveToTwo; } else if (seatNumber == 9 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.FourToOne; } else if (seatNumber == 9 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.FourToTwo; } else if (seatNumber == 10 && outputType == 0) { matrixChangeType = studiom.MatrixChangeType.ThreeToOne; } else if (seatNumber == 10 && outputType == 1) { matrixChangeType = studiom.MatrixChangeType.ThreeToTwo; } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } return(matrixChangeType); }