private void OnChangeApplicationDateClick(object sender, EventArgs e) { ApplicationDate frm = new ApplicationDate { Today = TimeProvider.Today }; if (frm.ShowDialog() != DialogResult.OK) return; if (TimeProvider.Today == frm.Today) return; TimeProvider.SetToday(frm.Today); ReloadAlerts(); }