Esempio n. 1
0
        private void gTrackBarSpindleSpeed_DoubleClick(object sender, EventArgs e)
        {
            SetSpeedPopup setSpeedPopup = new SetSpeedPopup();

            if (setSpeedPopup.ShowDialog() == DialogResult.OK)
            {
                Console.WriteLine("OK was clicked");
                Console.WriteLine("Checkbox was " + (setSpeedPopup.checkBoxQuickSets.Checked ? "" : "not ") + "checked");
                Console.WriteLine(setSpeedPopup.textBoxRPM.Text);
            }
            else
            {
                Console.WriteLine("Cancel was clicked");
            }
        }
Esempio n. 2
0
 private void gTrackBarSpindleSpeed_DoubleClick(object sender, EventArgs e)
 {
     SetSpeedPopup setSpeedPopup = new SetSpeedPopup();
     if (setSpeedPopup.ShowDialog() == DialogResult.OK)
     {
         Console.WriteLine("OK was clicked");
         Console.WriteLine("Checkbox was " + (setSpeedPopup.checkBoxQuickSets.Checked ? "" : "not ") + "checked");
         Console.WriteLine(setSpeedPopup.textBoxRPM.Text);
     }
     else Console.WriteLine("Cancel was clicked");
 }