Esempio n. 1
0
        public void Action(object sender, object contextObject)
        {
            IShapePlugin shapePlugin = (IShapePlugin)contextObject;

            HandlePluginParameters(shapePlugin);
            IShape shape = shapePlugin.GetShape();

            canvas.AddShape(shape);
            Console.WriteLine("Shapes on canvas:");
            canvas.DrawShapes();
            Console.ReadKey();
        }