|
@@ -64,8 +64,8 @@ namespace PRSDesktop
|
|
|
|
|
|
private void AutoDiscover(Dictionary<string, DatabaseSettings> allsettings)
|
|
|
{
|
|
|
- var confirm = MessageWindow.ShowYesNoCancel("Try to configure Server Connection Automatically?", "Auto Discover");
|
|
|
- if (confirm == MessageWindowResult.Yes)
|
|
|
+ var confirm = MessageWindow.ShowYesNo("Try to configure Server Connection Automatically?", "Auto Discover");
|
|
|
+ if (confirm)
|
|
|
try
|
|
|
{
|
|
|
using (new WaitCursor())
|
|
@@ -186,7 +186,7 @@ namespace PRSDesktop
|
|
|
sw.WriteLine();
|
|
|
sw.WriteLine("The following parameters are valid:");
|
|
|
_commandLineParameters.WriteOptionDescriptions(sw);
|
|
|
- MessageBox.Show(sw.ToString(), "PRS Desktop Startup Options");
|
|
|
+ MessageWindow.ShowMessage(sw.ToString(), "PRS Desktop Startup Options");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -200,7 +200,11 @@ namespace PRSDesktop
|
|
|
// Create Default Database Entry
|
|
|
if (!allsettings.Any())
|
|
|
{
|
|
|
- allsettings["Default"] = new DatabaseSettings();
|
|
|
+ var settings = new DatabaseSettings();
|
|
|
+ settings.UserID = "GUEST";
|
|
|
+ settings.Password = "guest";
|
|
|
+ settings.Autologin = false;
|
|
|
+ allsettings["Default"] = settings;
|
|
|
bSaveSettings = true;
|
|
|
}
|
|
|
|
|
@@ -255,7 +259,7 @@ namespace PRSDesktop
|
|
|
if (allsettings.ContainsKey(Profile))
|
|
|
DatabaseSettings = allsettings[Profile];
|
|
|
else
|
|
|
- MessageBox.Show(string.Format("Profile {0} does not exist!", Profile));
|
|
|
+ MessageWindow.ShowMessage($"Profile {Profile} does not exist!", "Error");
|
|
|
}
|
|
|
|
|
|
if (DatabaseSettings == null)
|