private void AddReportViewModel(SynchronizationReportName reportName) { string profileName; if (!_currentProfileNamesById.TryGetValue(reportName.SyncronizationProfileId, out profileName)) { profileName = "<Not existing anymore>"; } var reportProxy = new ReportProxy(reportName, () => _reportRepository.GetReport(reportName), profileName); var reportViewModel = new ReportViewModel(reportProxy, _reportRepository); _reports.Add(reportViewModel); }
static ReportViewModel() { DesignInstance = CreateDesignInstance(true, true); }
static ReportViewModel () { DesignInstance = CreateDesignInstance (true, true); }
private void AddReportViewModel (SynchronizationReportName reportName, SynchronizationReport report) { string profileName; if (!_currentProfileNamesById.TryGetValue (reportName.SyncronizationProfileId, out profileName)) profileName = "<Not existing anymore>"; var reportProxy = new ReportProxy (reportName, () => report, profileName); var reportViewModel = new ReportViewModel (reportProxy, _reportRepository); _reports.Add (reportViewModel); }