Пример #1
0
        public frmInputTRES(Form form)
        {
            try
            {
                frmMixingMain = (frmMixing)form;
                InitializeComponent();

                this.Height = 78;
                this.Width  = 213;

                int iLocTop  = ((form.Height / 2) - (this.Height / 2)) - 20;
                int iLocLeft = (form.Width / 2) - (this.Width / 2);


                this.Location = new Point(iLocLeft, iLocTop);

                base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

                this.txtTRES.Focus();
                this.txtTRES.SelectAll();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Пример #2
0
        public frmInputMB(Form form)
        {
            try
            {
                frmMixingMain = (frmMixing)form;
                InitializeComponent();

                this.Height = 78;
                this.Width  = 213;

                int iLocTop  = ((form.Height / 2) - (this.Height / 2)) - 20;
                int iLocLeft = (form.Width / 2) - (this.Width / 2);


                this.Location = new Point(iLocLeft, iLocTop);

                base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

                this.txtMBVol.Focus();
                this.txtMBVol.SelectAll();

                try
                {
                    //BarReader.Instance.BarReader.BarcodeRead += new BarcodeReadEventHandler(this.QR_BarcodeRead);
                    //BarReader.Instance.BarReader.ThreadedRead(true);

                    //tangmo Add
                    this.MsgWin              = new MsgWindow();
                    this.MsgWin.BarcodeRead += new Action(MsgWin_BarcodeRead);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }