Created a "login" dialog form to grab the server name from the user. Now a valid connection must be made before the Main form loads.

This commit is contained in:
2017-04-12 20:01:32 -05:00
parent 2e19bba711
commit a67dd966bd
9 changed files with 317 additions and 10 deletions
+11 -6
View File
@@ -19,13 +19,18 @@ namespace AdvertsingProfitControl
//var errorConsoleThread = new Thread(console.Show);
//errorConsoleThread.IsBackground = true;
//errorConsoleThread.Start();
if (args.Length == 1 && args[0] == "/debug")
var form = new FrmDatabaseSelector();
form.ShowDialog();
if (form._connectionSuccessful)
{
Application.Run(new FrmMain(true));
}
else
{
Application.Run(new FrmMain(false));
if (args.Length == 1 && args[0] == "/debug")
{
Application.Run(new FrmMain(true));
}
else
{
Application.Run(new FrmMain(false));
}
}
}
}