Beispiel #1
0
 void editShapeButton_Click(object sender, EventArgs e)
 {
     if (this.radButton1.RootElement.Children[0].Shape is CustomShape)
     {
         CustomShapeEditorForm editor = new CustomShapeEditorForm();
         this.radButton1.RootElement.Children[0].Shape = editor.EditShape(this.radButton1.RootElement.Children[0].Shape as CustomShape);
     }
 }
Beispiel #2
0
 private void radButtonEditShape_Click(object sender, EventArgs e)
 {
     if (this.radDropDownListShapes.SelectedIndex == 0)
     {
         CustomShapeEditorForm editor = new CustomShapeEditorForm();
         this.customShape = editor.EditShape(this.customShape);
         this.ApplyShapeToPoints(this.customShape);
     }
 }
Beispiel #3
0
        private void radButtonCreate_Click(object sender, EventArgs e)
        {
            CustomShapeEditorForm shapeEditor = new CustomShapeEditorForm();
            CustomShape           s           = shapeEditor.CreateShape();

            if (s != null)
            {
                this.shapedForm.Controls.Clear();
                this.shapedForm.Shape = s;
            }

            this.shapedForm.Invalidate();
        }