Exemplo n.º 1
0
        private void bt_SetToDefault_Click(object sender, EventArgs e)
        {
            Default yd = new Default();

            yd.xmlFirst = "PingAn01";
            if (DialogResult.OK == yd.ShowDialog())
            {
                cfg_pingan01 cfg = new cfg_pingan01();
                cfg.GetConfig();
                eNumberHead = cfg.ENumberHead;
                this.tbSignatureDate.Text = cfg.Signature;
                this.numericUpDown1.Value = cfg.OffsetX;
                this.numericUpDown2.Value = cfg.OffsetY;
                this.tbNo.Text            = cfg.SaveNo;
            }
        }
Exemplo n.º 2
0
        private void PingAn01_Load(object sender, EventArgs e)
        {
            throw new Exception("Unknown Error!");
            MessageBox.Show("本保险目前暂停使用");
            this.Close();
            cfg_pingan01 cc = new cfg_pingan01();

            cc.GetConfig();

            this.tbSignatureDate.Text = cc.Signature;
            this.numericUpDown1.Value = cc.OffsetX;
            this.numericUpDown2.Value = cc.OffsetY;
            this.tbNo.Text            = cc.SaveNo;
            this.tbPhone.Text         = cc.Phone;

            this.dateTimePicker1.Value = DateTime.Now;
            retstring = "";
            b_opened  = true;
            connect_4_Command.PrintWindowOpen = true;
            context            = this;
            this.ActiveControl = this.tbPnr;
        }