Example #1
0
 private void playDVDradioButton_CheckedChanged(object sender, EventArgs e)
 {
     if (playDVDradioButton.Checked)
     {
         dvdInsertedAction.Value = "PLAY";
         dvdInsertedAction.Commit();
     }
 }
Example #2
0
 private void playMovieRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     if (playMovieRadioButton.Checked)
     {
         clickGoesToDetails.Value = false;
         clickGoesToDetails.Commit();
     }
 }
Example #3
0
        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;
            }
        }
Example #4
0
        void SettingsTextBox_LostFocus(object sender, EventArgs e)
        {
            if (DesignMode)
            {
                return;
            }

            if (_setting.Validate(Text))
            {
                _setting.Value = Text;
                _setting.Commit();
            }
            else
            {
                Text = _setting.StringValue;
            }
        }
Example #5
0
 void SettingsComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     _setting.Value = ((FormatedComboBoxItem)SelectedItem).Value;
     _setting.Commit();
 }
Example #6
0
 private void commitSetting()
 {
     selectedSetting.Value = setValueTextBox.Text;
     selectedSetting.Commit();
     updateSettingButton.Enabled = false;
 }
Example #7
0
 void SettingCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     _setting.Value = Checked;
     _setting.Commit();
 }