public void OnShapeChanged(object sender, ShapeEventArgs e) { Shape shape = (Shape)sender; shape.Draw(); Console.WriteLine("This shape's area is {0} \n", e.Area); }
protected void OnShapeChanged(ShapeEventArgs e) { ShapeEventHandler?.Invoke(this, e); }