public override void AddShape(Rect rec) { ShapeFactory.AddShape(rec, ShapeTypes.Rectangle); }
public override void AddShape(Rect rec) { ShapeFactory.AddShape(rec, ShapeTypes.Ellipse); }
public override void OnExecute(object sender, System.Windows.Input.ExecutedRoutedEventArgs e) { ShapeFactory.AddShape(new Rect(new Point(10, 10), new Size(200, 55)), ShapeTypes.ClassShape); }