Example #1
0
        public void OnShapeChanged(object sender, ShapeEventArgs e)
        {
            Shape shape = (Shape)sender;

            shape.Draw();
            Console.WriteLine("This shape's area is {0} \n", e.Area);
        }
Example #2
0
 protected void OnShapeChanged(ShapeEventArgs e)
 {
     ShapeEventHandler?.Invoke(this, e);
 }