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