コード例 #1
0
 public InspectionReportsViewModel(IMillReportsRepository repo, IUserNotify notify)
 {
     this.repo      = repo;
     this.notify    = notify;
     createCommand  = ViewModelSource.Create <CreateReportCommand>(() => new CreateReportCommand(this, repo, notify));
     previewCommand = ViewModelSource.Create <PreviewReportCommand>(() => new PreviewReportCommand(this, repo, notify));
 }
コード例 #2
0
 public InspectionReportsViewModel(IMillReportsRepository repo, IUserNotify notify)
 {
     this.repo = repo;
     this.notify = notify;
     createCommand = ViewModelSource.Create<CreateReportCommand>(() => new CreateReportCommand(this, repo, notify));
     previewCommand = ViewModelSource.Create<PreviewReportCommand>(() => new PreviewReportCommand(this, repo, notify));
 }