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"); } }
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"); }