private void butPrefUpdate_Click(object sender, EventArgs e) { Prefs.UpdateRaw("GraphEmployeeTimesPeak", textPeak.Text); Prefs.UpdateRaw("GraphEmployeeTimesSuperPeak", textSuperPeak.Text); labelSave.Visible = true; Signalods.SetInvalid(InvalidType.Prefs); }
///<summary>This function will NOT update the prefs table (for now). All pref values for this form are hard-coded until we decide to make this a cutsomer-facing feature.</summary> private void TryUpdatePref(string prefName, string newValue) { return; try { Prefs.UpdateRaw(prefName, newValue); } catch (Exception e) { MessageBox.Show("Updating preference table failed. Any changes you made were not saved.\r\n\r\n" + e.Message); } }