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.AutoAddChangeOnOffKeyEnabled(dataList.OfType <AutoAddData>().DeepClone(), false); StatusManager.StatusNotifySet(true, mc.GetCmdMessageFormat("状態切替を実行", dataList.Count)); }
protected override void mc_ChangeOnOffKeyEnabled(object sender, ExecutedRoutedEventArgs e) { IsCommandExecuted = MenuUtil.AutoAddChangeOnOffKeyEnabled(dataList); }