Beispiel #1
0
 // open text creation form
 private void textWizzardToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (_text_form == null)
     {
         _text_form                 = new GCodeFromText();
         _text_form.FormClosed     += formClosed_TextToGCode;
         _text_form.btnApply.Click += getGCodeFromText;      // assign btn-click event
     }
     else
     {
         _text_form.Visible = false;
     }
     _text_form.Show(this);
 }
 private void formClosed_TextToGCode(object sender, FormClosedEventArgs e)
 {
     _text_form = null;
 }