private void MySaveData() { try { Focuser.m_LowPower = checkBoxLowPower.Checked; Focuser.m_MotorReverse = checkBoxReverse.Checked; Focuser.m_MotorSpeed = Convert.ToUInt16(comboBoxMotorSpeed.SelectedItem); Focuser.m_BTName = textBoxBTName.Text; } catch { } MyFocuser.WriteProfile(); }
private void buttonDefineMax_Click(object sender, EventArgs e) { //MyFocuser.DefinePosition(Focuser.m_CurrentPosition); if (Focuser.m_CurrentPosition < 1000) { MessageBox.Show("MaxStep cannot be less than 1000 !"); return; } Focuser.m_MaxStep = Focuser.m_CurrentPosition; Focuser.m_MaxIncrement = Focuser.m_CurrentPosition; MyFocuser.WriteProfile(); }