예제 #1
0
파일: CmdExe.cs 프로젝트: friendgo777/EDCB
        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));
        }