protected override void Load() { base.Load(); ConnectHelper.SyncData(); if (!HasValidLicense()) { return; } var settingsRepository = GetInstance <ISettingsRepository <WorkshopSettings> >(); var workshopSettings = settingsRepository.GetWorkshopSettings(); if (workshopSettings.IsStatusReportCheckEnabled) { var allTechnicians = GetInstance <IRepository <Technician> >().Where(c => c.Deleted == null).ToList(); var statusReport = new StatusReportViewModel(allTechnicians); if (!statusReport.IsUpToDate()) { if (ShowWarning(Resources.TXT_INFO_OUT_OF_DATE, Resources.TXT_OUT_OF_DATE_TITLE, MessageBoxButton.YesNo)) { statusReport.GenerateStatusReport(); workshopSettings.CentreQuarterlyCheckDate = DateTime.Now.Date; settingsRepository.Save(workshopSettings); } } } }