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:
@@ -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!");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user