Added more logging around the tracking rates.

Corrected the Command logged messages to use the correct info.
Added a try catch to the setup dialog to see if an error occurs to give a better message.
This commit is contained in:
2021-08-03 21:55:06 +01:00
parent faa6ad757e
commit f4c26d777b
3 changed files with 57 additions and 32 deletions
+21 -12
View File
@@ -292,25 +292,34 @@ namespace ASCOM.Meade.net
public static void SetupDialog()
{
var profileProperties = ReadProfile();
using (SetupDialogForm f = new SetupDialogForm())
try
{
f.SetProfile(profileProperties);
var profileProperties = ReadProfile();
if (IsConnected())
using (SetupDialogForm f = new SetupDialogForm())
{
f.SetReadOnlyMode();
}
f.SetProfile(profileProperties);
var result = f.ShowDialog();
if (result == DialogResult.OK)
{
profileProperties = f.GetProfile();
if (IsConnected())
{
f.SetReadOnlyMode();
}
WriteProfile(profileProperties); // Persist device configuration values to the ASCOM Profile store
var result = f.ShowDialog();
if (result == DialogResult.OK)
{
profileProperties = f.GetProfile();
WriteProfile(
profileProperties); // Persist device configuration values to the ASCOM Profile store
}
}
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}
#endregion