示例#1
0
        public override GraphicElement CloneDefault(Canvas canvas, Point offset)
        {
            AssemblyReferenceBox shape = new AssemblyReferenceBox(canvas);

            shape.DisplayRectangle = shape.DefaultRectangle().Move(offset);
            shape.UpdateProperties();
            shape.UpdatePath();

            return(shape);
        }
示例#2
0
        public override void Update(GraphicElement el, string label)
        {
            AssemblyReferenceBox box = (AssemblyReferenceBox)el;

            (label == "Filename").If(() =>
            {
                box.Filename = Filename;
            });

            base.Update(el, label);
        }
示例#3
0
 public AssemblyReferenceBoxProperties(AssemblyReferenceBox el) : base(el)
 {
     Filename = el.Filename;
 }