private void comboBoxMotorSpeed_SelectedIndexChanged(object sender, EventArgs e) { if (comboBoxMotorSpeed.SelectedItem.ToString() != Focuser.m_MotorSpeed.ToString()) { MyFocuser.SetSpeed(Convert.ToByte(comboBoxMotorSpeed.SelectedItem)); j = 0; } bUpdate = false; }
private void comboBoxMotorSpeed_SelectedIndexChanged(object sender, EventArgs e) { if (comboBoxMotorSpeed.SelectedItem.ToString() != Focuser.m_MotorSpeed.ToString()) { MyFocuser.SetSpeed(Convert.ToUInt16(comboBoxMotorSpeed.SelectedItem)); TimerCount = 0; } bChanging = false; }