Exemplo n.º 1
0
 //历史记录--------图片附加属性
 public void ReadyHistory_ImgProp(List <MImgElement> imgElements)
 {
     preValue_ImgProp = new HistoryValue_ImgProp();
     foreach (MImgElement element in imgElements)
     {
         ImgProp imgProp = new ImgProp();
         imgProp.imgElement     = element;
         imgProp.forbidOptimize = element.forbidOptimize;
         imgProp.strAlphaImage  = element.strAlphaImage;
         imgProp.strPmt         = element.strPmt;
         imgProp.alpha          = element.alpha;
         imgProp.linkID         = element.linkID;
         preValue_ImgProp.imgProps.Add(imgProp);
     }
 }
Exemplo n.º 2
0
        protected override void updateTo(HistoryValue valueT)
        {
            HistoryValue_ImgProp value = (HistoryValue_ImgProp)valueT;

            foreach (ImgProp imgProp in value.imgProps)
            {
                MImgElement imgElement = imgProp.imgElement;
                imgElement.forbidOptimize = imgProp.forbidOptimize;
                imgElement.strAlphaImage  = imgProp.strAlphaImage;
                imgElement.strPmt         = imgProp.strPmt;
                imgElement.alpha          = imgProp.alpha;
                imgElement.linkID         = imgProp.linkID;

                MImgsManager imgsManager = (MImgsManager)imgElement.GetParent();
                if (imgsManager != null && imgsManager.MNodeUI != null)
                {
                    imgsManager.MNodeUI.UpdateItem(imgElement.GetID());
                }
            }
        }
Exemplo n.º 3
0
        public void AddHistory_ImgProp(List <MImgElement> imgElements)
        {
            HistoryValue_ImgProp nextValue_ImgProp = new HistoryValue_ImgProp();

            foreach (MImgElement element in imgElements)
            {
                ImgProp imgProp = new ImgProp();
                imgProp.imgElement     = element;
                imgProp.forbidOptimize = element.forbidOptimize;
                imgProp.strAlphaImage  = element.strAlphaImage;
                imgProp.strPmt         = element.strPmt;
                imgProp.alpha          = element.alpha;
                imgProp.linkID         = element.linkID;
                nextValue_ImgProp.imgProps.Add(imgProp);
            }

            HistoryItem_ImgProp item = new HistoryItem_ImgProp(this);

            item.setValue(preValue_ImgProp, nextValue_ImgProp);
            AddItem(item);
            form_MA.refreshHistoryButtons();
            ReadyHistory_ImgProp(imgElements);
        }
Exemplo n.º 4
0
        public void AddHistory_ImgProp(List<MImgElement> imgElements)
        {
            HistoryValue_ImgProp nextValue_ImgProp = new HistoryValue_ImgProp();
            foreach (MImgElement element in imgElements)
            {
                ImgProp imgProp = new ImgProp();
                imgProp.imgElement = element;
                imgProp.forbidOptimize = element.forbidOptimize;
                imgProp.strAlphaImage = element.strAlphaImage;
                imgProp.strPmt = element.strPmt;
                imgProp.alpha = element.alpha;
                imgProp.linkID = element.linkID;
                nextValue_ImgProp.imgProps.Add(imgProp);
            }

            HistoryItem_ImgProp item = new HistoryItem_ImgProp(this);
            item.setValue(preValue_ImgProp, nextValue_ImgProp);
            AddItem(item);
            form_MA.refreshHistoryButtons();
            ReadyHistory_ImgProp(imgElements);
        }
Exemplo n.º 5
0
 //历史记录--------图片附加属性
 public void ReadyHistory_ImgProp(List<MImgElement> imgElements)
 {
     preValue_ImgProp = new HistoryValue_ImgProp();
     foreach (MImgElement element in imgElements)
     {
         ImgProp imgProp = new ImgProp();
         imgProp.imgElement = element;
         imgProp.forbidOptimize = element.forbidOptimize;
         imgProp.strAlphaImage = element.strAlphaImage;
         imgProp.strPmt = element.strPmt;
         imgProp.alpha = element.alpha;
         imgProp.linkID = element.linkID;
         preValue_ImgProp.imgProps.Add(imgProp);
     }
 }