/// <summary>右クリックメニュー 表示モードイベント呼び出し</summary> protected void cm_chg_viewMode_Click(object sender, ExecutedRoutedEventArgs e) { try { var param = e.Parameter as EpgCmdParam; if (param == null || param.ID == setViewInfo.ViewMode) { return; } //BlackWindowに状態を登録。 //コマンド集の機能による各ビューの共用メソッド。 mc.ViewChangeModeSupport(); CustomEpgTabInfo setInfo = setViewInfo.Clone(); setInfo.ViewMode = param.ID; ViewSetting(this, setInfo); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
public virtual void SetViewMode(CustomEpgTabInfo setInfo) { setViewInfo = setInfo.Clone(); this.viewCustServiceList = setInfo.ViewServiceList.ToList(); this.viewCustContentKindList.Clear(); if (setInfo.ViewContentKindList != null) { setInfo.ViewContentKindList.ForEach(val => this.viewCustContentKindList.Add(val, val)); } ReloadInfo = true; }