Forgot to update the behavior of the Integerity form, repair button is now disabled if no errors are found. The menu item for the Integrety form is now on the login and main menu forms. Security is not a huge concern at the moment.

This commit is contained in:
2018-02-10 21:51:48 -06:00
parent 36bbd29917
commit 65dd82cd31
5 changed files with 273 additions and 230 deletions
+9 -4
View File
@@ -277,6 +277,14 @@ namespace AdvertsingProfitControl
RowParser.BuildAdSpecialListings();
}
private void checkIntegrityToolStripMenuItem_Click(object sender, EventArgs e)
{
//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();
}
private void ShowHideLogConsole(object sender, EventArgs e)
{
if (_console.IsVisable)
@@ -1136,10 +1144,7 @@ namespace AdvertsingProfitControl
private void testToolStripMenuItem_Click(object sender, EventArgs e)
{
//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();
MessageBox.Show("You shouldn't be seeing this message box btw.", "No Easter Eggs Here!");
}
}
}