public void InitalizeConnString(MG_ConnectionString cs) { this.connString = cs; this.textBox_Server.Text = cs.Server; this.textBox_Port.Text = cs.Port; this.textBox_UserId.Text = cs.UserId; this.textBox_Password.Text = cs.Password; this.textBox_Database.Text = cs.Database; }
public void InitalizeConnString(MG_ConnectionString cs) { this.connString = cs; this.textBox_Server.Text = cs.Server; this.textBox_Port.Text = cs.Port; this.textBox_UserId.Text = cs.UserId; this.textBox_Password.Text = cs.Password; this.textBox_Database.Text = cs.Database; }
private void ribbonButton_ConnectDB_Click(object sender, EventArgs e) { // set conn string MG_DlgSetConnectionString dlg = new MG_DlgSetConnectionString(); dlg.InitalizeConnString(m_gConnStr); dlg.ShowDialog(); m_gConnStr = dlg.GetConnString(); // connect to database this.connection(m_gConnStr.ToString()); // set state this.setState(); }
private void Initialize() { this.KeyPreview = true;// left right up down key m_gMaps = new MG_MapSet(); // store all maps m_gConnStr = new MG_ConnectionString();// store conn string }
public MG_CommonDbOper() { this.ConnectionString = new MG_ConnectionString(); this.m_strConn = this.ConnectionString.ToString(); }