private void barButtonItem7_ItemClick(object sender, ItemClickEventArgs e) { if (scanningSession == null) { FrmScanningNew myForm = new FrmScanningNew(theReadHandler); myForm.Show(); } else { scanningSession.BringToFront(); scanningSession.WindowState = FormWindowState.Normal; } //scanningSession.Show(); }
public void setScanningSessionToNull() { scanningSession = null; }