protected virtual void mc_RestoreItem(object sender, ExecutedRoutedEventArgs e) { int count = 0; int id = CmdExeUtil.ReadIdData(e); try//Historysは操作以外で削除されないが、直接実行なので念のため { count = CmdHistorys.Historys[id].Items.Count; IsCommandExecuted = true == MenuUtil.RecWorkMainDataAdd(CmdHistorys.Historys[id].Items); if (IsCommandExecuted == true) { CmdHistorys.Historys.RemoveAt(id); } } catch { } StatusManager.StatusNotifySet(IsCommandExecuted, GetCmdMessageFormat("アイテムの復元", count)); }