Combined the skip prompts and set date time code, to just one check box.

This commit is contained in:
2021-04-24 13:16:08 +01:00
parent 6ac80c408c
commit eaeae4d66b
8 changed files with 111 additions and 168 deletions
+1 -3
View File
@@ -158,7 +158,6 @@ namespace ASCOM.Meade.net
nudSettleTime.Value = profileProperties.SettleTime;
cbxSendDateTime.Checked = profileProperties.SendDateTime;
cbxSkipPrompts.Checked = profileProperties.SkipPrompts;
}
public ProfileProperties GetProfile()
@@ -181,8 +180,7 @@ namespace ASCOM.Meade.net
DynamicBreaking = cbxDynamicBreaking.Checked,
SiteElevation = double.Parse(txtElevation.Text),
SettleTime = Convert.ToInt16(nudSettleTime.Value),
SendDateTime = cbxSendDateTime.Checked,
SkipPrompts = cbxSkipPrompts.Checked
SendDateTime = cbxSendDateTime.Checked
};
return profileProperties;