private void MainWindow_Loaded(object sender, EventArgs e)
        {
            clsXMLData  settings1 = new clsXMLData();
            xmlSettings settings  = new xmlSettings();

            settings      = settings1.ReadSettings();
            textBox.Text  = settings.userName;
            textBox1.Text = settings.serverName;
            textBox2.Text = settings.dbName;
            textBox3.Text = settings.dbPort;
        }
        private void button_Click(object sender, RoutedEventArgs e)
        {
            clsXMLData  xdata     = new clsXMLData();
            xmlSettings xsettings = new xmlSettings();

            xsettings.userName   = textBox.Text;
            xsettings.serverName = textBox1.Text;
            xsettings.dbName     = textBox2.Text;
            xsettings.dbPort     = textBox3.Text;
            xsettings            = xdata.writesettings(xsettings.userName, xsettings.serverName, xsettings.dbName, xsettings.dbPort);
            MessageBox.Show("Updated");
        }