예제 #1
0
 private void gTrackBarSpindleSpeed_ValueChanged(object sender, EventArgs e)
 {
     if (gTrackBarSpindleSpeed.Value < Settings.VFD_MinRPM)
     {
         gTrackBarSpindleSpeed.Value = Settings.VFD_MinRPM;
     }
     Spindle.SetRPM(gTrackBarSpindleSpeed.Value);
 }
예제 #2
0
 private void buttonStop_Click(object sender, EventArgs e)
 {
     Spindle.Stop();
     buttonStart.Enabled          = true;
     buttonStop.Enabled           = false;
     groupBoxSpindleSpeed.Enabled = false;
     ChangeGtrackbarColours(false);
     groupBoxQuickSets.Enabled = false;
 }
예제 #3
0
 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;
 }