private void OnAddedShape(EventArguments.AddedObjectEventArgs e) { if (AddedShape != null) { AddedShape(this, e); } }
private void Page_AddedShape(object sender, AddedObjectEventArgs e) { if (e.Object.GetObjectType() == DrawingObjectType.Shape) Paint((ShapeBase) e.Object); if (e.Object.GetObjectType() == DrawingObjectType.Text) Paint((TextObject) e.Object); }