Esempio n. 1
0
        //开始注册
        private void button1_Click(object sender, EventArgs e)
        {
            string txtcode = this.textBox1.Text.Trim().Replace(" ", "");

            cfgInfo cinfo = new cfgInfo();

            cinfo.setValue("mdcode", txtcode, "regcode.cfg");

            this.Close();
        }
Esempio n. 2
0
 //配件库路径设为默认值
 private void btnSetFntWebPathDefault_Click(object sender, EventArgs e)
 {
     MD3DParts = this.txtFntWebPath.Text = AllData.StartUpPath + "\\MD3DParts\\";
     //这里要指定默认值“”
     cinfo.setValue("strMD3DPartsPath", "");
 }