private void datePicker_ValueChanged(object sender, EventArgs e) { if (datePicker.Value.Date == DateTime.Now.Date) { ActivityTracker.SetCurrentActivityLog(); } else { ActivityTracker.SetSelectedActivityLog(Persistence.Load(monitor.GetApp, datePicker.Value.Date)); } RefreshActivitiesList(); RefreshCategories(); RefreshSummary(); RefreshChart(); }
private void datePicker_ValueChanged(object sender, EventArgs e) { List <string> errors = null; if (datePicker.Value.Date == DateTime.Now.Date) { ActivityTracker.SetCurrentActivityLog(); } else { ActivityTracker.SetSelectedActivityLog(Log.Load(monitor.GetApp, datePicker.Value.Date, out errors)); } if (errors != null && errors.Count != 0) { ReportErrorDuringLoading(errors); } RefreshActivitiesList(); RefreshCategories(); RefreshSummary(); RefreshChart(); }