Beispiel #1
0
        protected override void mc_Delete(object sender, ExecutedRoutedEventArgs e)
        {
            dataList = dataList.GetNoProtectedList();
            if (dataList.Count == 0)
            {
                return;
            }

            if (e.Command == EpgCmds.DeleteAll)
            {
                if (CmdExeUtil.CheckAllDeleteCancel(e, dataList.Count) == true)
                {
                    return;
                }
            }
            else
            {
                if (CmdExeUtil.CheckKeyboardDeleteCancel(e, dataList.Select(data => data.Title).ToList()) == true)
                {
                    return;
                }
            }

            if (IniFileHandler.GetPrivateProfileInt("SET", "RecInfoDelFile", 0, SettingPath.CommonIniPath) == 1)
            {
                if (MessageBox.Show("録画ファイルが存在する場合は一緒に削除されます。\r\nよろしいですか?",
                                    "ファイル削除", MessageBoxButton.OKCancel) != MessageBoxResult.OK)
                {
                    return;
                }
            }

            IsCommandExecuted = MenuUtil.RecinfoDelete(dataList);
        }
Beispiel #2
0
        protected virtual int CheckAutoAddChange(ExecutedRoutedEventArgs e, int proc)
        {
            if (proc != 3)
            {
                if (CmdExeUtil.IsMessageBeforeCommand(e) == true)
                {
                    if (MessageBox.Show(AutoAddString + "を" + cmdMsg[proc] + "します。\r\nよろしいですか?", cmdMsg[proc] + "の確認", MessageBoxButton.OKCancel) != MessageBoxResult.OK)
                    {
                        return(-2);
                    }
                }
            }
            else
            {
                if (CmdExeUtil.CheckAllProcCancel(e, autoAddData.IntoList(), true) == true)
                {
                    return(-1);
                }
            }

            if (proc != 0)
            {
                if (autoAddData == null)
                {
                    MessageBox.Show("項目がありません。\r\n" + "既に削除されています。", "データエラー", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                    SetViewMode(AutoAddMode.NewAdd);
                    return(1);
                }
            }

            return(0);
        }
Beispiel #3
0
        //proc 0:追加、1:変更、2:削除
        private bool CheckAutoAddChange(ExecutedRoutedEventArgs e, int proc)
        {
            if (CmdExeUtil.IsDisplayKgMessage(e) == true)
            {
                var strMode = new string[] { "追加", "変更", "削除" }[proc];
                if (MessageBox.Show("キーワード予約登録を" + strMode + "します。\r\nよろしいですか?", strMode + "の確認", MessageBoxButton.OKCancel) != MessageBoxResult.OK)
                {
                    return(false);
                }
            }

            //データの更新。最初のキャンセルを過ぎたら画面を更新する。
            SearchPg();

            if (proc != 0)
            {
                if (CommonManager.Instance.DB.EpgAutoAddList.ContainsKey(this.autoAddID) == false)
                {
                    MessageBox.Show("項目がありません。\r\n" + "既に削除されています。\r\n" + "(別のEpgtimerによる操作など)", "データエラー", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                    SetViewMode(SearchMode.NewAdd);
                    this.autoAddID = 0;
                    return(false);
                }
            }

            if (proc != 2 && Settings.Instance.CautionManyChange == true && searchKeyView.searchKeyDescView.checkBox_keyDisabled.IsChecked != true)
            {
                if (MenuUtil.CautionManyMessage(lstCtrl.dataList.GetNoReserveList().Count, "予約追加の確認") == false)
                {
                    return(false);
                }
            }

            return(true);
        }
        public void SaveOrder_handler(object sender, ExecutedRoutedEventArgs e)
        {
            try
            {
                if (CmdExeUtil.IsDisplayKgMessage(e) == true)
                {
                    if (MessageBox.Show("並びの変更を保存します。\r\nよろしいですか?", "保存の確認",
                                        MessageBoxButton.OKCancel) != MessageBoxResult.OK)
                    {
                        return;
                    }
                }

                //並び替えテーブル
                var changeIDTable = GetChangeIDTable();

                if (hlp.SaveChange(changeIDTable) == true)
                {
                    this.NotSaved = false;

                    //結果を保存する
                    if (e.Parameter is EpgCmdParam)
                    {
                        (e.Parameter as EpgCmdParam).Data = changeIDTable;
                    }
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
        }
Beispiel #5
0
        protected override void mc_ToAutoadd(object sender, ExecutedRoutedEventArgs e)
        {
            ReserveData  resData      = null;
            IBasicPgInfo eventRefData = null;

            if (eventList.Count != 0)
            {
                resData = CtrlCmdDefEx.ConvertEpgToReserveData(eventList[0]);
                if (dataList.Count != 0)
                {
                    resData.RecSetting = dataList[0].RecSetting.DeepClone();
                }
                else
                {
                    resData.RecSetting = Settings.Instance.RecPresetList[0].Data.DeepClone();
                }
                eventRefData = eventList[0];
            }
            else if (dataList.Count != 0)
            {
                resData      = dataList[0];
                eventRefData = new ReserveItem(resData).EventInfo ?? (IBasicPgInfo)resData;
            }

            var key = MenuUtil.SendAutoAddKey(eventRefData, CmdExeUtil.IsKeyGesture(e));

            MenuUtil.SendAutoAdd(resData, CmdExeUtil.IsKeyGesture(e), key);
            IsCommandExecuted = true;
        }
        private void mc_Delete(object sender, ExecutedRoutedEventArgs e)
        {
            if (listView_result.SelectedItem == null)
            {
                return;
            }
            //
            List <IRecWorkMainData> dataList = lstCtrl.GetSelectedItemsList().Select(data => data.Data).ToList();

            dataList.RemoveAll(d => d is RecFileInfo && (d as RecFileInfo).ProtectFlag != 0);

            if (CmdExeUtil.CheckDeleteCancel(e, dataList) == true)
            {
                return;
            }

            if (CmdExeRecinfo.mcs_DeleteCheckDelFile(dataList.OfType <RecFileInfo>()) == false)
            {
                return;
            }

            if (MenuUtil.CautionManyMessage(dataList.Count, "削除の確認") == false)
            {
                return;
            }

            MenuUtil.ReserveDelete(dataList.OfType <ReserveData>().ToList(), false);
            MenuUtil.RecinfoDelete(dataList.OfType <RecFileInfo>().ToList(), false);
            MenuUtil.AutoAddDelete(dataList.OfType <AutoAddData>().ToList(), false);

            StatusManager.StatusNotifySet(true, mc.GetCmdMessageFormat("削除を実行", dataList.Count));
        }
Beispiel #7
0
        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);
            }
        }
Beispiel #8
0
        public static bool CheckReserveOnRec(List <ReserveData> itemlist, string description)
        {
            if (Settings.Instance.CautionOnRecChange == false)
            {
                return(true);
            }
            int cMin = Settings.Instance.CautionOnRecMarginMin;

            List <string> list = itemlist.Select(item => CommonManager.Instance.DB.ReserveList.ContainsKey(item.ReserveID) == false ? item : CommonManager.Instance.DB.ReserveList[item.ReserveID])
                                 .Where(item => item.IsEnabled == true && item.OnTime(DateTime.UtcNow.AddHours(9).AddMinutes(cMin)) >= 0)
                                 .Select(item => new ReserveItem(item).StartTime + " " + item.Title).ToList();

            if (list.Count == 0)
            {
                return(true);
            }

            string text = string.Format("録画中または{0}分以内に録画開始される予約が含まれています。\r\n"
                                        + "処理を続けますか?\r\n\r\n"
                                        + "[該当予約数: {1}]\r\n\r\n", cMin, list.Count)
                          + CmdExeUtil.FormatTitleListForDialog(list);

            return(MessageBox.Show(text, "[予約" + description + "]の確認", MessageBoxButton.OKCancel,
                                   MessageBoxImage.Question, MessageBoxResult.Cancel) == MessageBoxResult.OK);
        }
Beispiel #9
0
        public static bool CheckAllProcCancel(ExecutedRoutedEventArgs e, IEnumerable <AutoAddData> dataList, bool IsDelete)
        {
            if (CmdExeUtil.IsMessageBeforeCommand(e) == false)
            {
                return(false);
            }

            List <string> titleList = dataList.Where(info => info != null).Select(info => info.DataTitle).ToList();

            if (titleList.Count == 0)
            {
                return(false);
            }

            var s = IsDelete == true
                ? new string[] { "予約ごと削除して", "削除", "削除される予約数", "予約ごと削除" }
                : new string[] { "予約の録画設定を自動登録の録画設定に合わせても", "処理", "対象予約数", "予約の録画設定変更" };

            var text = string.Format("{0}よろしいですか?\r\n"
                                     + "(個別予約も処理の対象となります。)\r\n\r\n"
                                     + "[{1}項目数: {2}]\r\n"
                                     + "[{3}: {4}]\r\n\r\n", s[0], s[1], titleList.Count, s[2], dataList.GetReserveList().Count)
                       + CmdExeUtil.FormatTitleListForDialog(titleList);

            return(MessageBox.Show(text, "[" + s[3] + "]の確認", MessageBoxButton.OKCancel,
                                   MessageBoxImage.Exclamation, MessageBoxResult.OK) != MessageBoxResult.OK);
        }
Beispiel #10
0
 protected override void mc_AdjustReserve(object sender, ExecutedRoutedEventArgs e)
 {
     if (CmdExeUtil.CheckAllProcCancel(e, dataList, false) == true)
     {
         return;
     }
     IsCommandExecuted = MenuUtil.AutoAddChangeSyncReserve(dataList);
 }
Beispiel #11
0
 protected override void mc_Delete2(object sender, ExecutedRoutedEventArgs e)
 {
     if (CmdExeUtil.CheckAllProcCancel(e, dataList, true) == true)
     {
         return;
     }
     IsCommandExecuted = MenuUtil.AutoAddDelete(dataList, true, true);
 }
Beispiel #12
0
 protected override void mc_SetNotKey(object sender, ExecutedRoutedEventArgs e)
 {
     if (CmdExeUtil.CheckSetFromClipBoardCancel(e, dataList, "Notキーワード") == true)
     {
         return;
     }
     IsCommandExecuted = MenuUtil.EpgAutoAddChangeNotKey(dataList);
 }
Beispiel #13
0
 protected override void mc_SetRecTag(object sender, ExecutedRoutedEventArgs e)
 {
     if (CmdExeUtil.CheckSetFromClipBoardCancel(e, dataList, "録画タグ") == true)
     {
         return;
     }
     IsCommandExecuted = MenuUtil.ReserveChangeRecTag(dataList, Clipboard.GetText());
 }
Beispiel #14
0
        protected bool mcc_chgRecSetting(ExecutedRoutedEventArgs e)
        {
            List <RecSettingData> infoList = dataList.OfType <IRecSetttingData>().Where(data => data.RecSettingInfo != null).RecSettingList();

            if (infoList.Count == 0)
            {
                return(false);
            }

            if (e.Command == EpgCmds.ChgOnPreset)
            {
                var val = Settings.Instance.RecPreset(CmdExeUtil.ReadIdData(e, 0, 0xFE)).Data;
                foreach (var data in dataList.OfType <IRecSetttingData>())
                {
                    data.RecSettingInfo = val.DeepClone();
                }
            }
            else if (e.Command == EpgCmds.ChgRecmode)
            {
                var val = (byte)CmdExeUtil.ReadIdData(e, 0, 5);
                infoList.ForEach(info => info.RecMode = val);
            }
            else if (e.Command == EpgCmds.ChgPriority)
            {
                var val = (byte)CmdExeUtil.ReadIdData(e, 1, 5);
                infoList.ForEach(info => info.Priority = val);
            }
            else if (e.Command == EpgCmds.ChgRelay)
            {
                var val = (byte)CmdExeUtil.ReadIdData(e, 0, 1);
                infoList.ForEach(info => info.TuijyuuFlag = val);
            }
            else if (e.Command == EpgCmds.ChgPittari)
            {
                var val = (byte)CmdExeUtil.ReadIdData(e, 0, 1);
                infoList.ForEach(info => info.PittariFlag = val);
            }
            else if (e.Command == EpgCmds.ChgTuner)
            {
                var val = (uint)CmdExeUtil.ReadIdData(e, 0, int.MaxValue - 1);
                infoList.ForEach(info => info.TunerID = val);
            }
            else if (e.Command == EpgCmds.ChgMarginStart)
            {
                int?offset = CmdExeUtil.ReadIdData(e);
                MenuUtil.ChangeMargin(infoList, offset == 0, offset, null, true);
            }
            else if (e.Command == EpgCmds.ChgMarginEnd)
            {
                int?offset = CmdExeUtil.ReadIdData(e);
                MenuUtil.ChangeMargin(infoList, offset == 0, null, offset, true);
            }
            else if (e.Command == EpgCmds.ChgMarginValue)
            {
                return(MenuUtil.ChangeMarginValue(infoList, CmdExeUtil.ReadIdData(e, 0, 2) == 1, this.Owner));
            }
            return(true);
        }
Beispiel #15
0
 protected override void mc_ShowDialog(object sender, ExecutedRoutedEventArgs e)
 {
     if (dataList.Count != 0 && CmdExeUtil.ReadIdData(e) != 1)
     {
         IsCommandExecuted = true == MenuUtil.OpenChangeReserveDialog(dataList[0], EpgInfoOpenMode);
     }
     else if (eventListAdd.Count != 0)
     {
         IsCommandExecuted = true == MenuUtil.OpenEpgReserveDialog(eventListAdd[0], EpgInfoOpenMode);
     }
 }
Beispiel #16
0
        public static bool CheckAllDeleteCancel(ExecutedRoutedEventArgs e, int Count)
        {
            if (CmdExeUtil.IsMessageBeforeCommand(e) == false)
            {
                return(false);
            }

            return(MessageBox.Show(string.Format(
                                       "全て削除しますか?\r\n" + "[削除項目数: {0}]", Count)
                                   , "[全削除]の確認", MessageBoxButton.OKCancel, MessageBoxImage.Exclamation, MessageBoxResult.OK) != MessageBoxResult.OK);
        }
Beispiel #17
0
 protected override void mc_SearchTitle(object sender, ExecutedRoutedEventArgs e)
 {
     if (eventList.Count != 0)//番組情報優先
     {
         MenuUtil.SearchTextWeb(eventList[0].DataTitle, CmdExeUtil.IsKeyGesture(e));
     }
     else if (dataList.Count != 0)
     {
         MenuUtil.SearchTextWeb(dataList[0].DataTitle, CmdExeUtil.IsKeyGesture(e));
     }
     IsCommandExecuted = true;
 }
Beispiel #18
0
 protected override void mc_CopyTitle(object sender, ExecutedRoutedEventArgs e)
 {
     if (eventList.Count != 0)//番組情報優先
     {
         MenuUtil.CopyTitle2Clipboard(eventList[0].DataTitle, CmdExeUtil.IsKeyGesture(e));
     }
     else if (dataList.Count != 0)
     {
         MenuUtil.CopyTitle2Clipboard(dataList[0].DataTitle, CmdExeUtil.IsKeyGesture(e));
     }
     IsCommandExecuted = true; //itemCount!=0 だが、この条件はこの位置では常に満たされている。
 }
Beispiel #19
0
 protected override void mc_CopyContent(object sender, ExecutedRoutedEventArgs e)
 {
     if (eventList.Count != 0)//番組情報優先
     {
         MenuUtil.CopyContent2Clipboard(eventList[0], CmdExeUtil.IsKeyGesture(e));
     }
     else if (dataList.Count != 0)
     {
         MenuUtil.CopyContent2Clipboard(dataList[0], CmdExeUtil.IsKeyGesture(e));
     }
     IsCommandExecuted = true;
 }
Beispiel #20
0
        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);
            }
        }
Beispiel #21
0
 protected override void mc_ShowDialog(object sender, ExecutedRoutedEventArgs e)
 {
     if (dataList.Count != 0 && CmdExeUtil.ReadIdData(e) != 1)
     {
         IsCommandExecuted = true == MenuUtil.OpenChangeReserveDialog(dataList[0], EpgInfoOpenMode);
     }
     else if (headDataRec != null && (eventListAdd.Count == 0 || eventListAdd[0].IsOver()))
     {
         IsCommandExecuted = true == MenuUtil.OpenRecInfoDialog(headDataRec);
     }
     else if (eventListAdd.Count != 0)
     {
         IsCommandExecuted = true == MenuUtil.OpenEpgReserveDialog(eventListAdd[0], EpgInfoOpenMode, GetRecSetting());
     }
 }
Beispiel #22
0
        protected virtual void mc_RestoreItem(object sender, ExecutedRoutedEventArgs e)
        {
            int count = 0;
            int id    = CmdExeUtil.ReadIdData(e);

            try//Historysは操作以外で削除されないが、直接実行なので念のため
            {
                count             = CmdHistorys.Historys[id].Items.Count;
                IsCommandExecuted = true == MenuUtil.RecWorkMainDataAdd(CmdHistorys.Historys[id].Items);
                if (IsCommandExecuted == true)
                {
                    CmdHistorys.Historys.RemoveAt(id);
                }
            }
            catch { }
            StatusManager.StatusNotifySet(IsCommandExecuted, GetCmdMessageFormat("アイテムの復元", count));
        }
Beispiel #23
0
        protected override void mc_SetNotKey(object sender, ExecutedRoutedEventArgs e)
        {
            if (CmdExeUtil.IsMessageBeforeCommand(e) == true)
            {
                var text = string.Format("Notキーを変更してよろしいですか?\r\n\r\n"
                                         + "[変更項目数: {0}]\r\n[貼り付けテキスト: \"{1}\"]\r\n\r\n", dataList.Count, Clipboard.GetText())
                           + CmdExeUtil.FormatTitleListForDialog(dataList.Select(info => info.searchInfo.andKey).ToList());

                if (MessageBox.Show(text.ToString(), "[Notキーワード変更]の確認", MessageBoxButton.OKCancel,
                                    MessageBoxImage.Exclamation, MessageBoxResult.OK) != MessageBoxResult.OK)
                {
                    return;
                }
            }

            IsCommandExecuted = MenuUtil.EpgAutoAddChangeNotKey(dataList);
        }
Beispiel #24
0
        protected bool mcc_chgRecSetting(ExecutedRoutedEventArgs e)
        {
            List <RecSettingData> infoList = dataList.OfType <IRecSetttingData>().RecSettingList();

            if (e.Command == EpgCmds.ChgOnPreset)
            {
                return(MenuUtil.ChangeOnPreset(infoList, (uint)CmdExeUtil.ReadIdData(e, 0, 0xFE)));
            }
            else if (e.Command == EpgCmds.ChgRecmode)
            {
                return(MenuUtil.ChangeRecmode(infoList, (byte)CmdExeUtil.ReadIdData(e, 0, 5)));
            }
            else if (e.Command == EpgCmds.ChgPriority)
            {
                return(MenuUtil.ChangePriority(infoList, (byte)CmdExeUtil.ReadIdData(e, 1, 5)));
            }
            else if (e.Command == EpgCmds.ChgRelay)
            {
                return(MenuUtil.ChangeRelay(infoList, (byte)CmdExeUtil.ReadIdData(e, 0, 1)));
            }
            else if (e.Command == EpgCmds.ChgPittari)
            {
                return(MenuUtil.ChangePittari(infoList, (byte)CmdExeUtil.ReadIdData(e, 0, 1)));
            }
            else if (e.Command == EpgCmds.ChgTuner)
            {
                return(MenuUtil.ChangeTuner(infoList, (uint)CmdExeUtil.ReadIdData(e, 0, int.MaxValue - 1)));
            }
            else if (e.Command == EpgCmds.ChgMarginStart)
            {
                return(MenuUtil.ChangeMargin(infoList, CmdExeUtil.ReadIdData(e), true));
            }
            else if (e.Command == EpgCmds.ChgMarginStartValue)
            {
                return(MenuUtil.ChangeMarginValue(infoList, true, this.Owner));
            }
            else if (e.Command == EpgCmds.ChgMarginEnd)
            {
                return(MenuUtil.ChangeMargin(infoList, CmdExeUtil.ReadIdData(e), false));
            }
            else if (e.Command == EpgCmds.ChgMarginEndValue)
            {
                return(MenuUtil.ChangeMarginValue(infoList, false, this.Owner));
            }
            return(false);
        }
Beispiel #25
0
 protected override void mc_Delete(object sender, ExecutedRoutedEventArgs e)
 {
     if (e.Command == EpgCmds.DeleteAll)
     {
         if (CmdExeUtil.CheckAllDeleteCancel(e, dataList.Count) == true)
         {
             return;
         }
     }
     else
     {
         if (CmdExeUtil.CheckKeyboardDeleteCancel(e, dataList.Select(data => data.DataTitle).ToList()) == true)
         {
             return;
         }
     }
     IsCommandExecuted = MenuUtil.AutoAddDelete(dataList);
 }
 protected virtual bool CheckReserveChange(ExecutedRoutedEventArgs e, int proc)
 {
     if (CmdExeUtil.IsMessageBeforeCommand(e) == true)
     {
         if (MessageBox.Show("予約を" + cmdMsg[proc] + "します。\r\nよろしいですか?", cmdMsg[proc] + "の確認", MessageBoxButton.OKCancel) != MessageBoxResult.OK)
         {
             return(false);
         }
     }
     if (proc != 0)
     {
         if (CheckExistReserveItem() == false)
         {
             return(false);
         }
     }
     return(true);
 }
Beispiel #27
0
        private void button_add_reserve_Click(object sender, ExecutedRoutedEventArgs e)
        {
            if (CmdExeUtil.IsDisplayKgMessage(e) == true)
            {
                if (MessageBox.Show("予約を追加します。\r\nよろしいですか?", "追加の確認", MessageBoxButton.OKCancel) != MessageBoxResult.OK)
                {
                    return;
                }
            }
            bool ret = MenuUtil.ReserveAdd(CommonUtil.ToList(eventInfo), recSettingView);

            CommonManager.Instance.StatusNotifySet(ret, "録画予約を追加");

            if (ret == false)
            {
                return;
            }
            DialogResult = true;
        }
        private void reserve_proc(ExecutedRoutedEventArgs e, int proc)
        {
            if (CmdExeUtil.IsMessageBeforeCommand(e) == true)
            {
                if (MessageBox.Show("予約を" + cmdMsg[proc] + "します。\r\nよろしいですか?", cmdMsg[proc] + "の確認", MessageBoxButton.OKCancel) != MessageBoxResult.OK)
                {
                    return;
                }
            }

            bool ret = false;

            if (proc == 0)
            {
                ret = MenuUtil.ReserveAdd(CommonUtil.ToList(eventInfo), recSettingView);
            }
            else
            {
                List <ReserveData> list = GetReserveList();
                if (proc == 1)
                {
                    RecSettingData recSet = recSettingView.GetRecSetting();
                    list.ForEach(data => data.RecSetting = recSet);
                    ret = MenuUtil.ReserveChange(list);
                }
                else
                {
                    ret = MenuUtil.ReserveDelete(list);
                }
            }

            StatusManager.StatusNotifySet(ret, "録画予約を" + cmdMsg[proc]);

            if (ret == false)
            {
                return;
            }
            if (KeepWin == false)
            {
                this.Close();
            }
        }
Beispiel #29
0
 protected override void mc_Play(object sender, ExecutedRoutedEventArgs e)
 {
     if (CmdExeUtil.ReadIdData(e) == 0)
     {
         if (dataList.Count == 0)
         {
             return;
         }
         CommonManager.Instance.FilePlay(dataList[0]);
     }
     else
     {
         if (headDataRec == null)
         {
             return;
         }
         CommonManager.Instance.FilePlay(headDataRec.RecFilePath);
     }
     IsCommandExecuted = true;
 }
Beispiel #30
0
        private void button_del_reserve_Click(object sender, ExecutedRoutedEventArgs e)
        {
            if (CmdExeUtil.IsDisplayKgMessage(e) == true)
            {
                if (MessageBox.Show("この予約を削除します。\r\nよろしいですか?", "削除の確認", MessageBoxButton.OKCancel) != MessageBoxResult.OK)
                {
                    return;
                }
            }

            if (CheckExistReserveItem() == false)
            {
                return;
            }

            bool ret = MenuUtil.ReserveDelete(CommonUtil.ToList(reserveInfo));

            CommonManager.Instance.StatusNotifySet(ret, "録画予約を削除");

            DialogResult = true;
        }