Renamed the database selector form to "Login Form" and updated its UI. Moved database initialization to the login form. Made the exit file menu option on the main form functional.

This commit is contained in:
2017-04-13 02:59:34 -05:00
parent a67dd966bd
commit 7b2a93cbf6
14 changed files with 6591 additions and 286 deletions
+9 -10
View File
@@ -19,18 +19,17 @@ namespace AdvertsingProfitControl
//var errorConsoleThread = new Thread(console.Show);
//errorConsoleThread.IsBackground = true;
//errorConsoleThread.Start();
var form = new FrmDatabaseSelector();
var form = new FrmLoginForm();
form.ShowDialog();
if (form._connectionSuccessful)
//Check to see if there was a successful connection, otherwise simply quite.
if (!form.ConnectionSuccessful) return;
if (args.Length == 1 && args[0] == "/debug")
{
if (args.Length == 1 && args[0] == "/debug")
{
Application.Run(new FrmMain(true));
}
else
{
Application.Run(new FrmMain(false));
}
Application.Run(new FrmMain(true));
}
else
{
Application.Run(new FrmMain(false));
}
}
}