Added ability to skip the prompts initial connect, and added ability to send the date and time on initial connect

This commit is contained in:
2021-04-21 20:17:00 +01:00
parent 5538f51cf0
commit e4af93dd07
8 changed files with 207 additions and 54 deletions
+7 -2
View File
@@ -156,6 +156,9 @@ namespace ASCOM.Meade.net
cbxReverseDirection.Checked = profileProperties.ReverseFocusDirection;
cbxDynamicBreaking.Checked = profileProperties.DynamicBreaking;
nudSettleTime.Value = profileProperties.SettleTime;
cbxSendDateTime.Checked = profileProperties.SendDateTime;
cbxSkipPrompts.Checked = profileProperties.SkipPrompts;
}
public ProfileProperties GetProfile()
@@ -177,8 +180,10 @@ namespace ASCOM.Meade.net
ReverseFocusDirection = cbxReverseDirection.Checked,
DynamicBreaking = cbxDynamicBreaking.Checked,
SiteElevation = double.Parse(txtElevation.Text),
SettleTime = Convert.ToInt16(nudSettleTime.Value)
};
SettleTime = Convert.ToInt16(nudSettleTime.Value),
SendDateTime = cbxSendDateTime.Checked,
SkipPrompts = cbxSkipPrompts.Checked
};
return profileProperties;
}