Exemplo n.º 1
0
        protected override void mc_ChangeOnOff(object sender, ExecutedRoutedEventArgs e)
        {
            //多数アイテム処理の警告。合計数に対して出すので、結構扱いづらい。
            if (MenuUtil.CautionManyMessage(this.itemCount, "簡易予約/有効←→無効") == false)
            {
                return;
            }

            if (MenuUtil.ReserveChangeOnOff(dataList, this.recSettingView, false) == false)
            {
                return;
            }
            IsCommandExecuted = MenuUtil.ReserveAdd(eventListEx, this.recSettingView, 0, false);
        }
Exemplo n.º 2
0
        protected override void mc_ChangeOnOff(object sender, ExecutedRoutedEventArgs e)
        {
            //多数アイテム処理の警告。合計数に対して出すので、結構扱いづらい。
            if (MenuUtil.CautionManyMessage(dataList.Count + eventListEx.Count, "簡易予約/有効←→無効") == false)
            {
                return;
            }

            bool ret1  = MenuUtil.ReserveChangeOnOff(dataList, false);
            var  eList = dataList.Count == 0 ? eventListEx :
                         HasList == true?eventListEx.FindAll(data => data.IsReservable == true) : new List <EpgEventInfo>();

            bool ret2 = MenuUtil.ReserveAdd(eList, GetRecSetting(), 0, false);

            IsCommandExecuted = !(ret1 == false && ret2 == false || dataList.Count == 0 && ret2 == false || eventListEx.Count == 0 && ret1 == false);
        }
Exemplo n.º 3
0
        private void mc_ChgOnOff(object sender, ExecutedRoutedEventArgs e)
        {
            if (listView_result.SelectedItem == null)
            {
                return;
            }
            //
            List <IRecWorkMainData> dataList = lstCtrl.GetSelectedItemsList().Select(data => data.Data).ToList();

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

            MenuUtil.ReserveChangeOnOff(dataList.OfType <ReserveData>().DeepClone(), null, false);
            MenuUtil.RecinfoChgProtect(dataList.OfType <RecFileInfo>().DeepClone(), false);
            MenuUtil.AutoAddChangeKeyEnabled(dataList.OfType <AutoAddData>().DeepClone());

            StatusManager.StatusNotifySet(true, mc.GetCmdMessageFormat("状態切替を実行", dataList.Count));
        }