Example #1
0
        private void buttonstatchangeoutlinewidth_Click(object sender, EventArgs e)
        {
            if (!painter.shape_was_select)
            {
                MessageBox.Show("No selected shape");
                return;
            }
            IEditable shape = painter.selected_shape as IEditable;

            if (shape == null)
            {
                MessageBox.Show("This shape cant be edite");
                return;
            }


            try
            {
                shape.ChangeOutlineWidth(Convert.ToInt32(textBoxstatwidth.Text));
                painter.DrawShapeList(shape_list);
                painter.SelectShape();
                Refresh();
            }
            catch
            {
                MessageBox.Show("invalid value");
            }
        }