Exemplo n.º 1
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));
        }
Exemplo n.º 2
0
 protected override void mc_ProtectChange(object sender, ExecutedRoutedEventArgs e)
 {
     IsCommandExecuted = MenuUtil.RecinfoChgProtect(dataList);
 }