示例#1
0
        protected override void updateTo(HistoryValue valueT)
        {
            HistoryValue_ImgRename value = (HistoryValue_ImgRename)valueT;

            value.imgElement.renameImage(value.destName);
            MImgsManager imgsManager = (MImgsManager)value.imgElement.GetParent();

            if (imgsManager != null && imgsManager.MNodeUI != null)
            {
                imgsManager.MNodeUI.UpdateItem(value.imgElement.GetID());
            }
        }
示例#2
0
        public void AddHistory_ImgRename(MImgElement imgelement)
        {
            HistoryValue_ImgRename nextValue_ImgRename = new HistoryValue_ImgRename();

            nextValue_ImgRename.imgElement = imgelement;
            nextValue_ImgRename.destName   = imgelement.name;

            HistoryItem_ImgRename item = new HistoryItem_ImgRename(this);

            item.setValue(preValue_ImgRename, nextValue_ImgRename);
            AddItem(item);
            form_MA.refreshHistoryButtons();
            ReadyHistory_ImgRename(imgelement);
        }
        public void AddHistory_ImgRename(MImgElement imgelement)
        {
            HistoryValue_ImgRename nextValue_ImgRename = new HistoryValue_ImgRename();
            nextValue_ImgRename.imgElement = imgelement;
            nextValue_ImgRename.destName = imgelement.name;

            HistoryItem_ImgRename item = new HistoryItem_ImgRename(this);
            item.setValue(preValue_ImgRename, nextValue_ImgRename);
            AddItem(item);
            form_MA.refreshHistoryButtons();
            ReadyHistory_ImgRename(imgelement);
        }
示例#4
0
 //历史记录--------图片重命名
 public void ReadyHistory_ImgRename(MImgElement imgelement)
 {
     preValue_ImgRename            = new HistoryValue_ImgRename();
     preValue_ImgRename.imgElement = imgelement;
     preValue_ImgRename.destName   = imgelement.name;
 }
 //历史记录--------图片重命名
 public void ReadyHistory_ImgRename(MImgElement imgelement)
 {
     preValue_ImgRename = new HistoryValue_ImgRename();
     preValue_ImgRename.imgElement = imgelement;
     preValue_ImgRename.destName = imgelement.name;
 }