private void gTrackBarSpindleSpeed_ValueChanged(object sender, EventArgs e) { if (gTrackBarSpindleSpeed.Value < Settings.VFD_MinRPM) { gTrackBarSpindleSpeed.Value = Settings.VFD_MinRPM; } Spindle.SetRPM(gTrackBarSpindleSpeed.Value); }
private void buttonStop_Click(object sender, EventArgs e) { Spindle.Stop(); buttonStart.Enabled = true; buttonStop.Enabled = false; groupBoxSpindleSpeed.Enabled = false; ChangeGtrackbarColours(false); groupBoxQuickSets.Enabled = false; }
private void buttonStart_Click(object sender, EventArgs e) { Spindle.Start((checkBoxReverse.Checked ? SpindleDirection.Backwards : SpindleDirection.Forward)); buttonStart.Enabled = false; buttonStop.Enabled = true; groupBoxSpindleSpeed.Enabled = true; ChangeGtrackbarColours(true); groupBoxQuickSets.Enabled = true; //gTrackBarSpindleSpeed.Value = Settings.VFD_MinFreq; }