protected override void mc_ChgResMode(object sender, ExecutedRoutedEventArgs e) { if (dataList.Count == 0) { return; } var data = CmdExeUtil.ReadObjData(e) as Type; uint id = (uint)CmdExeUtil.ReadIdData(e); if (data == null) { //通常の変更 IsCommandExecuted = MenuUtil.ReserveChangeResMode(dataList, id); } if (dataList.Count != 1) { return; //通常はここに引っかかることは無いはず } AutoAddData autoAdd = AutoAddData.AutoAddList(data, id); if (autoAdd != null) { IsCommandExecuted = MenuUtil.ReserveChangeResModeAutoAdded(dataList, autoAdd); } }