Пример #1
0
        private void bt_SetToDefault_Click(object sender, EventArgs e)
        {
            Default yd = new Default();

            yd.xmlFirst = "DuBang01";
            if (DialogResult.OK == yd.ShowDialog())
            {
                cfg_dubang01 cfg = new cfg_dubang01();
                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;
            }
        }
Пример #2
0
        private void DuBang01_Load(object sender, EventArgs e)
        {
            throw new Exception("Unknown Error!");
            cfg_dubang01 cc = new cfg_dubang01();

            cc.GetConfig();

            this.tbSignature.Text     = cc.Signature;
            this.numericUpDown1.Value = cc.OffsetX;
            this.numericUpDown2.Value = cc.OffsetY;
            this.tbNo.Text            = cc.SaveNo;
            this.tbPrintTime.Text     = System.DateTime.Now.ToShortDateString();
            this.eNumberHead          = cc.ENumberHead;
            retstring = "";
            b_opened  = true;
            connect_4_Command.PrintWindowOpen = true;
            context = this;

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