コード例 #1
0
        private void radioButton2_MouseClick(object sender, MouseEventArgs e)
        {
            clsXMLData  settings1 = new clsXMLData();
            xmlSettings settings  = new xmlSettings();
            pathset     set3      = new pathset();

            flag = 0;

            if (var == "ePlus Basic Edition")
            {
                set3.xmlPath = @"C:\Users\Amritha\AppData\Roaming\ePlus Basic Edition";
                set3         = settings1.readPath(set3.xmlPath);
            }
            if (var == "ePlus Proffessional Edition")
            {
                set3.xmlPath = @"C:\Users\Amritha\AppData\Roaming\ePlus Professional Edition";
                set3         = settings1.readPath(set3.xmlPath);
            }
            if (var == "ePlus Standard Edition")
            {
                set3.xmlPath = @"C:\Users\Amritha\AppData\Roaming\ePlus Standard Edition";
                set3         = settings1.readPath(set3.xmlPath);
            }
            settings      = settings1.ReadSettings();
            textBox1.Text = settings.userName;
            textBox2.Text = settings.serverName;
            textBox3.Text = settings.dbName;
            textBox4.Text = settings.dbPort;
        }
コード例 #2
0
        private void radioButton1_MouseClick(object sender, MouseEventArgs e)
        {
            string      SFolder   = @"C:\ProgramData";
            clsXMLData  settings1 = new clsXMLData();
            xmlSettings settings  = new xmlSettings();
            pathset     set3      = new pathset();

            flag          = 1;
            set3.xmlPath  = SFolder + "\\" + comboBox1.Text;
            set3          = settings1.readPath(set3.xmlPath);
            settings      = settings1.ReadSettings();
            textBox1.Text = settings.userName;
            textBox2.Text = settings.serverName;
            textBox3.Text = settings.dbName;
            textBox4.Text = settings.dbPort;
        }
コード例 #3
0
        private void radioButton2_MouseClick(object sender, MouseEventArgs e)
        {
            string      SpecialFolder = @"C:\Users\";
            string      SpecialData   = @"AppData\Roaming";
            clsXMLData  settings1     = new clsXMLData();
            xmlSettings settings      = new xmlSettings();
            pathset     set3          = new pathset();

            flag          = 0;
            set3.xmlPath  = SpecialFolder + (Environment.UserName) + "\\" + SpecialData + "\\" + comboBox1.Text;
            set3          = settings1.readPath(set3.xmlPath);
            settings      = settings1.ReadSettings();
            textBox1.Text = settings.userName;
            textBox2.Text = settings.serverName;
            textBox3.Text = settings.dbName;
            textBox4.Text = settings.dbPort;
        }