コード例 #1
0
        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);
        }
コード例 #2
0
 static ReportViewModel()
 {
     DesignInstance = CreateDesignInstance(true, true);
 }
コード例 #3
0
 static ReportViewModel ()
 {
   DesignInstance = CreateDesignInstance (true, true);
 }
コード例 #4
0
    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);
    }