Esempio n. 1
0
 public void LoadData(DrawLine obj, Form frm)
 {
     objLine            = obj;
     txtName.Text       = objLine.Name;
     txtX1.Text         = objLine.Point1.X.ToString();
     txtX2.Text         = objLine.Point2.X.ToString();
     txtY1.Text         = objLine.Point1.Y.ToString();
     txtY2.Text         = objLine.Point2.Y.ToString();
     txtWidth.Text      = objLine.LineWidth.ToString();
     lblColor.BackColor = objLine.Color;
     frmOwner           = frm;
 }
        public override void Copy(DrawingItem obj)
        {
            base.Copy(obj);
            DrawLine v = obj as DrawLine;

            if (v != null)
            {
                this.Point1     = v.Point1;
                this.Point2     = v.Point2;
                this.Color      = v.Color;
                this.LineWidth  = v.LineWidth;
                this._direction = v._direction;
            }
        }