Changed the requirements of the integrity checking form to need a connection string. The login form willl now attempt to use the connection string setting but failing that it will use the server name in the combo box. The main form will use the app's connection string setting.

This commit is contained in:
2018-02-10 21:39:09 -06:00
parent 2dd754ed29
commit 36bbd29917
3 changed files with 16 additions and 12 deletions
+3 -1
View File
@@ -1136,7 +1136,9 @@ namespace AdvertsingProfitControl
private void testToolStripMenuItem_Click(object sender, EventArgs e)
{
var t = new FrmIntegrityCheck();
//Considering we're at the main form, it can be a safe bet that this program's connection string
//property is set correctly, so simply use that for the Integrity form.
var t = new FrmIntegrityCheck(Properties.Settings.Default.ConnectionString);
t.ShowDialog();
}
}