예제 #1
0
/********************************************************************
* Laser setup
* _laser_form
********************************************************************/
        private void laseropen(object sender, EventArgs e)
        {
            if (_laser_form == null)
            {
                _laser_form                = new ControlLaser();
                _laser_form.FormClosed    += formClosed_LaserForm;
                _laser_form.RaiseCmdEvent += OnRaiseLaserEvent;
            }
            else
            {
                _laser_form.Visible = false;
            }
            _laser_form.Show(this);
            _laser_form.WindowState = FormWindowState.Normal;
        }
예제 #2
0
 private void formClosed_LaserForm(object sender, FormClosedEventArgs e)
 {
     _laser_form = null;
 }