Exemplo n.º 1
0
 private void MnDBSetting_Click(object sender, EventArgs e)
 {
     dbinfo = new DBInfoForm();
     dbinfo.btn_confirm.MouseClick += new MouseEventHandler(btn_dbConfirm_MouseClick);
     dbinfo.tbx_host.Text = configCtrl.DbServerIp + ":" + configCtrl.DbPort;
     dbinfo.tbx_dbname.Text = configCtrl.DbName;
     dbinfo.tbx_id.Text = configCtrl.DbUser;
     dbinfo.tbx_pass.Text = configCtrl.DbPasswd;
     dbinfo.Show();
 }
Exemplo n.º 2
0
 private void MnDBSetting_Click(object sender, EventArgs e)
 {
     dbinfo = new DBInfoForm();
     dbinfo.btn_confirm.MouseClick += new MouseEventHandler(btn_dbConfirm_MouseClick);
     dbinfo.btn_close.MouseClick += new MouseEventHandler(btn_close_MouseClick);
     dbinfo.tbx_host.Text = System.Configuration.ConfigurationSettings.AppSettings["DB_HOST"];
     dbinfo.tbx_dbname.Text = System.Configuration.ConfigurationSettings.AppSettings["DB_NAME"];
     dbinfo.tbx_id.Text = System.Configuration.ConfigurationSettings.AppSettings["DB_USER"];
     dbinfo.tbx_pass.Text = System.Configuration.ConfigurationSettings.AppSettings["DB_PASS"];
     dbinfo.Show();
 }