Ejemplo n.º 1
0
        void OpenScanBarcodeForm()
        {
            if (this._scanBarcodeForm == null)
            {
                this._scanBarcodeForm = new ScanRegisterBarcodeForm();
                MainForm.SetControlFont(this._scanBarcodeForm, this.Font, false);
                this._scanBarcodeForm.BackColor      = SystemColors.ControlDark;
                this._scanBarcodeForm.BarcodeScaned += new ScanedEventHandler(_scanBarcodeForm_BarcodeScaned);
                this._scanBarcodeForm.FormClosed    += new FormClosedEventHandler(_scanBarcodeForm_FormClosed);
                this._scanBarcodeForm.Show(this);
            }
            else
            {
                if (this._scanBarcodeForm.WindowState == FormWindowState.Minimized)
                {
                    this._scanBarcodeForm.WindowState = FormWindowState.Normal;
                }
            }

            this.entityRegisterControl1.BeginThread();
        }
Ejemplo n.º 2
0
 void _scanBarcodeForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     this._scanBarcodeForm = null;
     this.entityRegisterControl1.StopThread();
 }
Ejemplo n.º 3
0
 void _scanBarcodeForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     this._scanBarcodeForm = null;
     this.entityRegisterControl1.StopThread();
 }
Ejemplo n.º 4
0
        void OpenScanBarcodeForm()
        {
            if (this._scanBarcodeForm == null)
            {
                this._scanBarcodeForm = new ScanRegisterBarcodeForm();
                MainForm.SetControlFont(this._scanBarcodeForm, this.Font, false);
                this._scanBarcodeForm.BackColor = SystemColors.ControlDark;
                this._scanBarcodeForm.BarcodeScaned += new ScanedEventHandler(_scanBarcodeForm_BarcodeScaned);
                this._scanBarcodeForm.FormClosed += new FormClosedEventHandler(_scanBarcodeForm_FormClosed);
                this._scanBarcodeForm.Show(this);
            }
            else
            {
                if (this._scanBarcodeForm.WindowState == FormWindowState.Minimized)
                    this._scanBarcodeForm.WindowState = FormWindowState.Normal;
            }

            this.entityRegisterControl1.BeginThread();
        }