コード例 #1
0
ファイル: BaseForm.cs プロジェクト: wangscript007/FGTrack_PLM
        protected override void OnClosing(CancelEventArgs e)
        {
            FullScreenHandle.StopFullScreen(this);

            if (this.barReader != null)
            {
                this.barReader.Dispose();
                this.barReader = null;
            }
            base.OnClosing(e);
        }
コード例 #2
0
ファイル: BaseForm.cs プロジェクト: wangscript007/FGTrack_PLM
        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();
            }
        }