Example #1
0
        private void SinoSafe_Load(object sender, EventArgs e)
        {
            throw new Exception("Unknown Error!");
            LogoPicture.pictures pic = new LogoPicture.pictures();
            this.pictureBox1.Image = pic.pictureBox3.Image;
            cbInsureType.Text      = cbInsureType.Items[0].ToString();

            DateTime dt = new DateTime();

            dt = System.DateTime.Now;
            dtp_Start.Value = dt;
            dtp_Date.Value  = dt;
            dtp_End.Value   = dt.AddDays(7);

            cfg_sinosafe cs = new cfg_sinosafe();

            cs.GetConfig();
            this.tb_Signature.Text    = cs.Signature;
            this.numericUpDown1.Value = cs.OffsetX;
            this.numericUpDown2.Value = cs.OffsetY;
            this.tb_NO.Text           = cs.SaveNo;
            this.tbPhone.Text         = cs.Phone;
            this.tbCompany.Text       = cs.CompanyAddr;

            retstring = "";
            b_opened  = true;
            connect_4_Command.PrintWindowOpen = true;
            context = this;
            if (this.tbPhone.Text.Trim() == "82424242")
            {
                tbPhone.Text = "";
            }
        }
Example #2
0
        private void bt_SetToDefault_Click(object sender, EventArgs e)
        {
            Default yd = new Default();

            yd.xmlFirst = "SinoSafe";
            if (DialogResult.OK == yd.ShowDialog())
            {
                cfg_sinosafe cfg = new cfg_sinosafe();
                cfg.GetConfig();
                eNumberHead               = cfg.ENumberHead;
                this.tb_Signature.Text    = cfg.Signature;
                this.numericUpDown1.Value = cfg.OffsetX;
                this.numericUpDown2.Value = cfg.OffsetY;
                this.tb_NO.Text           = cfg.SaveNo;
            }
        }