private void playDVDradioButton_CheckedChanged(object sender, EventArgs e) { if (playDVDradioButton.Checked) { dvdInsertedAction.Value = "PLAY"; dvdInsertedAction.Commit(); } }
private void playMovieRadioButton_CheckedChanged(object sender, EventArgs e) { if (playMovieRadioButton.Checked) { clickGoesToDetails.Value = false; clickGoesToDetails.Commit(); } }
private void autoApproveTrackBar_Scroll(object sender, EventArgs e) { autoApproval.Value = autoApproveTrackBar.Value; autoApproval.Commit(); Point pos = Cursor.Position; pos.Y += 25; switch (autoApproveTrackBar.Value) { case 0: Help.ShowPopup(this, "Low", pos); break; case 1: Help.ShowPopup(this, "Medium", pos); break; case 2: Help.ShowPopup(this, "High", pos); break; case 3: Help.ShowPopup(this, "Reckless!", pos); break; } }
void SettingsTextBox_LostFocus(object sender, EventArgs e) { if (DesignMode) { return; } if (_setting.Validate(Text)) { _setting.Value = Text; _setting.Commit(); } else { Text = _setting.StringValue; } }
void SettingsComboBox_SelectedIndexChanged(object sender, EventArgs e) { _setting.Value = ((FormatedComboBoxItem)SelectedItem).Value; _setting.Commit(); }
private void commitSetting() { selectedSetting.Value = setValueTextBox.Text; selectedSetting.Commit(); updateSettingButton.Enabled = false; }
void SettingCheckBox_CheckedChanged(object sender, EventArgs e) { _setting.Value = Checked; _setting.Commit(); }