/// <summary> /// 智存空间处理 /// </summary> public void DealWidthSpace() { try { //导航按钮 NavicateButton navicateButton = null; if (this.isEdacationModel) { //导航样式更改 navicateButton = this.btnSpaceEducation; } else if (this.isSimpleModel) { //导航样式更改 navicateButton = this.btnSpace2; } else if (this.isNormalModel) { //导航样式更改 navicateButton = this.btnSpace; } //导航样式更改 this.ButtonStyleChanged(navicateButton); //跳转到会议空间 this.borMain.Child = this.SpaceView; } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 系统设置处理 /// </summary> public void DealWidthSystemSetting() { try { NavicateButton navicateButton = null; if (this.isEdacationModel) { //导航样式更改 navicateButton = this.btnSettingEducation; } else if (this.isSimpleModel) { //导航样式更改 navicateButton = this.btnSetting; } //导航样式更改 this.ButtonStyleChanged(navicateButton); //跳转到系统设置 this.borMain.Child = this.Setting_View; } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 知识树处理 /// </summary> public void DealWithTree() { try { //导航按钮 NavicateButton navicateButton = null; if (this.isEdacationModel) { //导航样式更改 navicateButton = this.btnTreeEducation; } else { //导航样式更改 navicateButton = this.btnTree; } //导航样式更改 this.ButtonStyleChanged(navicateButton); //跳转到知识树 this.borMain.Child = this.ConferenceTreeView; } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 我的会议处理 /// </summary> public void DealWithMeet() { try { //导航按钮 NavicateButton navicateButton = null; if (this.isEdacationModel) { navicateButton = this.btnMeetEducation; } else if (this.isSimpleModel) { //导航样式更改 navicateButton = this.btnMeet2; } else if (this.isNormalModel) { //导航样式更改 navicateButton = this.btnMeet; } //导航样式更改 this.ButtonStyleChanged(navicateButton); //加载我的会议 this.borMain.Child = this.MyConferenceView; } 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 { 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="btn">导航按钮</param> protected void ButtonStyleChanged(NavicateButton btn) { try { if (btn != null) { //若选中的为当前标记的则不进行样式变更 if (btn.Equals(base.beforeSelectedButton)) { return; } if (btn.IntType == 1) { //样式更改1 btn.Style = this.btnSyle1_Selected; } //当前按钮为导航区域类型2 else if (btn.IntType == 2) { //样式更改2 btn.Style = this.btnSyle2_Selected; } //将之前选中的导航按钮进行样式恢复 if (base.beforeSelectedButton != null) { //类型转换 int intTag = base.beforeSelectedButton.IntType; //之前选中的按钮样式还原 if (intTag == 1) { //样式更改1 base.beforeSelectedButton.Style = this.btnSyle1; } //之前选中的按钮样式还原 else if (intTag == 2) { //样式更改2 base.beforeSelectedButton.Style = this.btnSyle2; } } //当前选中按钮变更 base.beforeSelectedButton = btn; } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 共享协作处理 /// </summary> public void DealWidthResource() { try { //导航样式更改 NavicateButton navicateButton = null; if (this.isEdacationModel) { //导航按钮 navicateButton = this.btnResourceEducation; //隐藏IMM提示 this.borResourceTipEducation.Visibility = vy.Hidden; } else if (this.isSimpleModel) { //导航样式更改 navicateButton = this.btnResource2; //隐藏IMM提示 this.borResourceTip2.Visibility = vy.Hidden; } else if (this.isNormalModel) { //导航样式更改 navicateButton = this.btnResource; //隐藏IMM提示 this.borResourceTip.Visibility = vy.Hidden; } //导航样式更改 this.ButtonStyleChanged(navicateButton); //跳转到资源共享 this.borMain.Child = this.ConversationM; //设置会话区域显示内容 this.ConversationM.SetConversationAreaShow(ShowType.ConversationView, false); //停止计时器工作 if (base.ResourceFlashTimer != null) { base.ResourceFlashTimer.Stop(); } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 负级桌位初始化 /// </summary> /// <param name="seatEntity">座位列表</param> /// <param name="halfCount">座位数量的一半</param> private void Seat_Init_Neg(List <maxtrix.SeatEntity> seatEntity, int halfCount) { try { //遍历设置座位 foreach (var item in seatEntity) { int number = item.SettingNummber; string content = "座位" + number; if (!string.IsNullOrEmpty(item.UserName)) { content = item.UserName; } if (number <= halfCount) { if (this.dicSeatButton2.ContainsKey(number + halfCount)) { NavicateButton btnd = this.dicSeatButton2[number + halfCount]; btnd.Content = content; btnd.IntType = item.SettingNummber; } } else { if (this.dicSeatButton1.ContainsKey(number - halfCount)) { NavicateButton btnd = this.dicSeatButton1[number - halfCount]; btnd.Content = content; btnd.IntType = item.SettingNummber; } } } this.BorScreen1.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; if (this.BorScreen2 != null) { this.BorScreen2.HorizontalAlignment = System.Windows.HorizontalAlignment.Right; } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
public void btn_Navicate(object sender, RoutedEventArgs e) { try { if (sender is NavicateButton) { NavicateButton navicateButton = sender as NavicateButton; //切换控制中心 this.NavicateChangeCenter(navicateButton.ViewSelectedItemEnum); } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 会议切换 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnMeet_Change_Click(object sender, RoutedEventArgs e) { try { if (sender is NavicateButton) { NavicateButton navicateButton = sender as NavicateButton; //首页子项选择事件 this.OnIndexItemSelected(navicateButton.ViewSelectedItemEnum); } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
void btnNavicate(object sender, RoutedEventArgs e) { try { if (sender is NavicateButton) { NavicateButton navicateButton = sender as NavicateButton; //首页子项选择事件 this.SyncPageHelper(navicateButton.ViewSelectedItemEnum); } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 信息交流处理 /// </summary> public void DealWidthIMM() { try { NavicateButton navicateButton = null; if (this.isSimpleModel) { //导航样式更改 navicateButton = this.btnIMM2; //隐藏IMM提示 this.borImmTip2.Visibility = vy.Hidden; } else { //导航样式更改 navicateButton = this.btnIMM; //隐藏IMM提示 this.borImmTip.Visibility = vy.Hidden; } //停止计时器工作 if (base.IMMFlashTimer != null) { base.IMMFlashTimer.Stop(); } //导航样式更改 this.ButtonStyleChanged(navicateButton); //跳转到信息交流 this.borMain.Child = this.ConferenceAudio_View; } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 座位初始化 /// </summary> public void SeatDataFill() { try { //座位数量统计 int count = this.GridSeatPanel.Children.Count; //遍历同一面板的所有座位并进行加载 for (int i = 0; i < count; i++) { //获取元素 var element = this.GridSeatPanel.Children[i]; if (element.GetType() == typeof(NavicateButton)) { //类型还原 NavicateButton btn = element as NavicateButton; if (i < count / 2) { //记录 this.dicSeatButton1.Add(i + 1, btn); } else { this.dicSeatButton2.Add(i + 1, btn); } } } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }