Exemplo n.º 1
0
        public void Action(object sender, EventArgs e)
        {
            ShapeTypeDialog dlg = new ShapeTypeDialog();

            try
            {
                dlg.ShowDialog();
            }
            finally
            {
                dlg.Dispose();
            }
        }
Exemplo n.º 2
0
        public override void Action(object sender, EventArgs e)
        {
            ShapeTypeDialog dlg = new ShapeTypeDialog();

            dlg.ShowDialog();
            ShapeType type = dlg.GetShapeType();

            if (cmd.canvasVector != null)
            {
                cmd.canvasVector.data.Type = type;
                if (cmd.canvasVector.StackControl != null)
                {
                    cmd.canvasVector.StackControl.data.Type = type;
                    cmd.canvasVector.StackControl.DrawFigure(type);
                }
            }
        }