private void btnSettings_Click(object sender, EventArgs e) { this.Enabled = false; Forms.frmSettings dlg = new Forms.frmSettings(); dlg.ShowDialog(); this.Enabled = true; }
/// <summary> /// this method will get the connection string from the clConnString class and associate it to the SQL connection object. /// </summary> public void OpenSettingsFile() { if (Properties.Config.Default.Data_Source != "") { clConnString CnnStr = new Classes.clConnString(Properties.Config.Default.Data_Source, Properties.Config.Default.Initial_Catalog, Properties.Config.Default.User_ID, Properties.Config.Default.Password); this._SQLConn = new SqlConnection(CnnStr.CnnString); } else { Forms.frmSettings frmSettings = new Forms.frmSettings(); frmSettings.ShowDialog(); } }