public override Object Clone()
 {
     var result = new EllipseProperty();
     result.InitProperty();
     Copy(result);
     return result;
 }
Exemple #2
0
 public override void OnMouseDown(IToolDrawArea drawArea, MouseEventArgs e)
 {
     var property = new EllipseProperty();
     property.InitProperty();
     property.Size = "1,1";
     property.Location = String.Format("{0},{1}", e.X, e.Y);
     var draw = new DrawEllipse(property);
     drawArea.AddNewDrawObject(draw);
 }
Exemple #3
0
 public override IDrawObject CreateDrawObject(PageControl control)
 {
     var property = new EllipseProperty();
     InitDrawObjectFromPageControl(control, property);
     return new DrawEllipse(property);
 }
Exemple #4
0
 public DrawEllipse(EllipseProperty property)
     : base(property)
 {
 }