Exemplo n.º 1
0
 private void formClosed_SetupForm(object sender, FormClosedEventArgs e)
 {
     loadSettings(sender, e);
     _setup_form = null;
     VisuGCode.drawMachineLimit(toolTable.getToolCordinates());
     pictureBox1.Invalidate();                                   // resfresh view
     gamePadTimer.Enabled = Properties.Settings.Default.gamePadEnable;
 }
Exemplo n.º 2
0
/********************************************************************
* Setup Form
* _setup_form
********************************************************************/
        private void setupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_setup_form == null)
            {
                _setup_form             = new ControlSetupForm();
                _setup_form.FormClosed += formClosed_SetupForm;
                _setup_form.btnApplyChangings.Click += loadSettings;
                _setup_form.btnReloadFile.Click     += reStartConvertFile;
                _setup_form.btnMoveToolXY.Click     += moveToPickup;
                _setup_form.setLastLoadedFile(lastLoadSource);
                gamePadTimer.Enabled = false;
            }
            else
            {
                _setup_form.Visible = false;
            }
            _setup_form.Show(null);// this);
            _setup_form.WindowState = FormWindowState.Normal;
        }