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