Example #1
0
 protected override void mc_SetRecTag(object sender, ExecutedRoutedEventArgs e)
 {
     if (CmdExeUtil.CheckSetFromClipBoardCancel(e, dataList, "録画タグ") == true)
     {
         return;
     }
     IsCommandExecuted = MenuUtil.AutoAddChangeRecTag(dataList, Clipboard.GetText());
 }
Example #2
0
        private void mc_SetRecTag(object sender, ExecutedRoutedEventArgs e)
        {
            if (listView_result.SelectedItem == null)
            {
                return;
            }
            //
            List <IRecWorkMainData> dataList = lstCtrl.GetSelectedItemsList().Select(data => data.Data).Where(data => data is IRecSetttingData).ToList();

            if (CmdExeUtil.CheckSetFromClipBoardCancel(e, dataList, "録画タグ") == true)
            {
                return;
            }

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

            MenuUtil.ReserveChangeRecTag(dataList.OfType <ReserveData>().DeepClone(), Clipboard.GetText(), false);
            MenuUtil.AutoAddChangeRecTag(dataList.OfType <AutoAddData>().DeepClone(), Clipboard.GetText(), false);

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