コード例 #1
0
ファイル: frmMain.cs プロジェクト: JakobST1n/Love2dToAPK
 private void btnSettings_Click(object sender, EventArgs e)
 {
     this.Enabled = false;
     Forms.frmSettings dlg = new Forms.frmSettings();
     dlg.ShowDialog();
     this.Enabled = true;
 }
コード例 #2
0
ファイル: clDBConnect.cs プロジェクト: s-heer/Modulus
 /// <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();
     }
 }