protected override void mc_ChgResMode(object sender, ExecutedRoutedEventArgs e) { if (dataList.Count == 0) { return; } var data = CmdExeUtil.ReadObjData(e) as Type; uint id = (uint)CmdExeUtil.ReadIdData(e); if (data == null) { //通常の変更 IsCommandExecuted = MenuUtil.ReserveChangeResMode(dataList, id); } if (dataList.Count != 1) { return; //通常はここに引っかかることは無いはず } AutoAddData autoAdd = AutoAddData.AutoAddList(data, id); if (autoAdd != null) { IsCommandExecuted = MenuUtil.ReserveChangeResModeAutoAdded(dataList, autoAdd); } }
protected virtual void mc_ShowAutoAddDialog(object sender, ExecutedRoutedEventArgs e) { AutoAddData autoAdd = AutoAddData.AutoAddList(CmdExeUtil.ReadObjData(e) as Type, (uint)CmdExeUtil.ReadIdData(e)); if (autoAdd is EpgAutoAddData) { IsCommandExecuted = true == MenuUtil.OpenChangeEpgAutoAddDialog(autoAdd as EpgAutoAddData); } else if (autoAdd is ManualAutoAddData) { IsCommandExecuted = true == MenuUtil.OpenChangeManualAutoAddDialog(autoAdd as ManualAutoAddData, this.Owner); } }
protected virtual void mc_OpenFolder(object sender, ExecutedRoutedEventArgs e) { CommonManager.Instance.OpenFolder(CmdExeUtil.ReadObjData(e) as string, "録画フォルダを開く"); }
protected virtual void mc_ShowAutoAddDialog(object sender, ExecutedRoutedEventArgs e) { IsCommandExecuted = true == MenuUtil.OpenChangeAutoAddDialog(CmdExeUtil.ReadObjData(e) as Type, (uint)CmdExeUtil.ReadIdData(e)); }