/// <summary> /// Gets the current state of all checkboxes and saves that information to an xml file /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MakeDefaultButtonClicked(object sender, EventArgs e) { SaveCurrentSettings(); HoursSettingsHandler.SaveSettings(DaysSelected, PartTimeDays, 1); DialogResult = DialogResult.OK; }
/// <summary> /// Logic for clicking the save button. Selected days of the week are saved and sent to the home screen. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SaveButtonClicked(object sender, EventArgs e) { SaveCurrentSettings(); HoursSettingsHandler.SaveSettings(DaysSelected, PartTimeDays, 0); // Send back OK result so the form data can be transfered back to home screen DialogResult = DialogResult.OK; }