protected override void OnClosing(CancelEventArgs e) { FullScreenHandle.StopFullScreen(this); if (this.barReader != null) { this.barReader.Dispose(); this.barReader = null; } base.OnClosing(e); }
public BaseForm() { InitializeComponent(); FullScreenHandle.StartFullScreen(this); //create a instance of CSymbology object if (this.symb == null) { this.symb = new CSymbology("AllScanners"); this.symb.EnableAll(); //use symbology exception this.symb.EnableSymbologyExceptions(true); } if (this.barReader == null) { this.barReader = new Intermec.DataCollection.BarcodeReader(); this.SuspendLayout(); } }