Esempio n. 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());
            }
        }
Esempio n. 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);
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
 //历史记录--------图片重命名
 public void ReadyHistory_ImgRename(MImgElement imgelement)
 {
     preValue_ImgRename            = new HistoryValue_ImgRename();
     preValue_ImgRename.imgElement = imgelement;
     preValue_ImgRename.destName   = imgelement.name;
 }
Esempio n. 5
0
 //历史记录--------图片重命名
 public void ReadyHistory_ImgRename(MImgElement imgelement)
 {
     preValue_ImgRename = new HistoryValue_ImgRename();
     preValue_ImgRename.imgElement = imgelement;
     preValue_ImgRename.destName = imgelement.name;
 }