/******************************************************************** * 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; }
private void formClosed_LaserForm(object sender, FormClosedEventArgs e) { _laser_form = null; }