Example #1
0
 protected override void mc_SetNotKey(object sender, ExecutedRoutedEventArgs e)
 {
     if (CmdExeUtil.CheckSetFromClipBoardCancel(e, dataList, "Notキーワード") == true)
     {
         return;
     }
     IsCommandExecuted = MenuUtil.EpgAutoAddChangeNotKey(dataList);
 }
Example #2
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);
        }