Beispiel #1
0
        private void bt_SetToDefault_Click(object sender, EventArgs e)
        {
            Default yd = new Default();

            yd.xmlFirst = "DuBang02";
            if (DialogResult.OK == yd.ShowDialog())
            {
                cfg_dubang02 cfg = new cfg_dubang02();
                cfg.GetConfig();
                eNumberHead               = cfg.ENumberHead;
                this.tbSignature.Text     = cfg.Signature;
                this.numericUpDown1.Value = cfg.OffsetX;
                this.numericUpDown2.Value = cfg.OffsetY;
                this.tbNo.Text            = cfg.SaveNo;
            }
        }
Beispiel #2
0
        private void DuBang02_Load(object sender, EventArgs e)
        {
            throw new Exception("Unknown Error!");
            LogoPicture.pictures pic = new LogoPicture.pictures();
            this.pictureBox1.Image = pic.pictureBox3.Image;
            DateTime dt = new DateTime();

            dt                 = System.DateTime.Now;
            dtpBeg.Value       = dt;
            dtpPrintTime.Value = dt;
            cfg_dubang02 cfg = new cfg_dubang02();

            cfg.GetConfig();
            tbTerm.Text          = cfg.Term;
            dtpEnd.Value         = dt.AddDays(int.Parse(tbTerm.Text.Trim()));
            tbNo.Text            = cfg.SaveNo;
            tbSignature.Text     = cfg.Signature;
            numericUpDown1.Value = cfg.OffsetX;
            numericUpDown2.Value = cfg.OffsetY;
            eNumberHead          = cfg.ENumberHead;
            retstring            = "";
            b_opened             = true;
            connect_4_Command.PrintWindowOpen = true;
            context = this;

            if (tbNo.Text.Trim() == "")
            {
                tbNo.Text = "110108070";
            }

            if (bEagleDubang && b_dubang03)
            {
                PrintHyx.bxLogin bx = new ePlus.PrintHyx.bxLogin();
                if (bx.ShowDialog() != DialogResult.OK)
                {
                    this.Close();
                }
            }
        }