Exemplo n.º 1
0
 public MillReportsViewModel(IMillReportsRepository repo, IUserNotify notify, ICategoryRepository repoCategory)
 {
     this.repo = repo;
     this.notify = notify;
     this.repoCategory = repoCategory;
     createCommand = ViewModelSource.Create<CreateReportCommand>(() => new CreateReportCommand(this, repo, notify));
     previewCommand = ViewModelSource.Create<PreviewReportCommand>(() => new PreviewReportCommand(this, repo, notify));
     GetAllCategories();
     LoadAllReportTypes();
 }
Exemplo n.º 2
0
 public MillReportsViewModel(IMillReportsRepository repo, IUserNotify notify, ICategoryRepository repoCategory)
 {
     this.repo         = repo;
     this.notify       = notify;
     this.repoCategory = repoCategory;
     createCommand     = ViewModelSource.Create <CreateReportCommand>(() => new CreateReportCommand(this, repo, notify));
     previewCommand    = ViewModelSource.Create <PreviewReportCommand>(() => new PreviewReportCommand(this, repo, notify));
     GetAllCategories();
     LoadAllReportTypes();
 }