Пример #1
0
 private void createSimpleShapesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (_shape_form == null)
     {
         _shape_form                 = new GCodeFromShape();
         _shape_form.FormClosed     += formClosed_ShapeToGCode;
         _shape_form.btnApply.Click += getGCodeFromShape;      // assign btn-click event
     }
     else
     {
         _shape_form.Visible = false;
     }
     _shape_form.Show(this);
 }
Пример #2
0
 private void formClosed_ShapeToGCode(object sender, FormClosedEventArgs e)
 {
     _shape_form = null;
 }