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(); }
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(); }