Exemplo n.º 1
0
/********************************************************************
* Jog Path creator
* _setup_form
********************************************************************/
        private void jogCreatorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_jogPathCreator_form == null)
            {
                _jogPathCreator_form                    = new ControlJogPathCreator();
                _jogPathCreator_form.FormClosed        += formClosed_JogCreator;
                _jogPathCreator_form.btnJogStart.Click += getGCodeJogCreator;   // assign btn-click event
                _jogPathCreator_form.btnExport.Click   += getGCodeJogCreator2;  // assign btn-click event
                _jogPathCreator_form.btnJogStop.Click  += btnJogStop_Click;     // assign btn-click event
            }
            else
            {
                _jogPathCreator_form.Visible = false;
            }
            _jogPathCreator_form.Show(null);// this);
            _jogPathCreator_form.WindowState = FormWindowState.Normal;
        }
Exemplo n.º 2
0
 private void formClosed_JogCreator(object sender, FormClosedEventArgs e)
 {
     _jogPathCreator_form = null;
 }