Beispiel #1
0
        private void button14_Click(object sender, EventArgs e)
        {
            string     LoginSystempath = textBox7.Text;
            ReadXMLdoc xml             = new ReadXMLdoc();

            if (string.IsNullOrEmpty(LoginSystempath))
            {
                LoginSystempath = "地址4";
            }
            if (xml.xmlisExists())
            {
                if (xml.updatexmldoc("LoginSystem", LoginSystempath))
                {
                    MessageBox.Show("保存成功!");
                }
            }
        }
Beispiel #2
0
        private void button11_Click(object sender, EventArgs e)
        {
            string     DataBasepath = textBox6.Text;
            ReadXMLdoc xml          = new ReadXMLdoc();

            if (string.IsNullOrEmpty(DataBasepath))
            {
                DataBasepath = "地址3";
            }
            if (xml.xmlisExists())
            {
                if (xml.updatexmldoc("DataBase", DataBasepath))
                {
                    MessageBox.Show("保存成功!");
                }
            }
        }
Beispiel #3
0
        //保存项目基本文件路径
        private void button8_Click(object sender, EventArgs e)
        {
            string     Invincepath = textBox4.Text;
            ReadXMLdoc xml         = new ReadXMLdoc();

            if (string.IsNullOrEmpty(Invincepath))
            {
                Invincepath = "地址1";
            }
            if (xml.xmlisExists())
            {
                if (xml.updatexmldoc("InvincibleCMS", Invincepath))
                {
                    MessageBox.Show("保存成功!");
                }
            }
        }
Beispiel #4
0
        private void button7_Click(object sender, EventArgs e)
        {
            string     Sqlpath = textBox5.Text;
            ReadXMLdoc xml     = new ReadXMLdoc();

            if (string.IsNullOrEmpty(Sqlpath))
            {
                Sqlpath = "地址2";
            }
            if (xml.xmlisExists())
            {
                if (xml.updatexmldoc("SqlUrl", Sqlpath))
                {
                    MessageBox.Show("保存成功!");
                }
            }
        }
Beispiel #5
0
        private void button6_Click(object sender, EventArgs e)
        {
            string     projectpath = textBox2.Text;
            ReadXMLdoc xml         = new ReadXMLdoc();

            if (string.IsNullOrEmpty(projectpath))
            {
                projectpath = "地址0";
            }
            if (xml.xmlisExists())
            {
                if (xml.updatexmldoc("Program", projectpath))
                {
                    MessageBox.Show("保存成功!");
                }
            }
        }