Exemplo n.º 1
0
 public override void Do()
 {
     if (DuplicatedElementInfo == null)
     {
         DuplicatedElementInfo = Viewport.DuplicateElement(Element, Element.Location);
     }
     else
     {
         Viewport.AddElement(DuplicatedElementInfo);
     }
 }
Exemplo n.º 2
0
        public override void Do()
        {
            var rg  = ProjectDoc.Instance.ResourceGroups[Info.ResKind];
            var res = rg.GetResourceInfo(Info.ResPathFile);

            if (res == null)
            {
                // TODO: Log Null resources
            }
            else
            {
                var e = ElementInfo.CreateElement(res, Viewport, new System.Drawing.PointF(0, 0));
                e.GUID      = Info.GUID;
                e.CreatorId = UserID;
                e.BaseTrans.Copy(Info.TransInfo);
                e.ManualScaleOnSrcBackImage = Info.ManualScaleOnSrcBackImage;
                Viewport.AddElement(e);
            }
        }
Exemplo n.º 3
0
 public override void Do()
 {
     Viewport.AddElement(Element);
 }