private void applyButton_Click(object sender, EventArgs e) { PreferenceManager.SetDefaults(libraryLocationTextBox.Text, (int)resultNumericUpDown.Value, developmentCheckBox.Checked); }