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