Exemple #1
0
        public WeldDateReportViewModel(
            IMillReportsRepository repo,
            IUserNotify notify)
        {
            this.repo   = repo;
            this.notify = notify;

            createCommand = ViewModelSource
                            .Create <CreateRepoCommand>(() => new CreateRepoCommand(this, repo, notify));

            previewCommand = ViewModelSource
                             .Create <PreviewRepoCommand>(() => new PreviewRepoCommand(this, repo, notify));
        }
        public WeldDateReportViewModel(
            IMillReportsRepository repo, 
            IUserNotify notify)
        {
            this.repo = repo;
            this.notify = notify;

            createCommand = ViewModelSource
                .Create<CreateRepoCommand>(() => new CreateRepoCommand(this, repo, notify));

            previewCommand = ViewModelSource
                .Create<PreviewRepoCommand>(() => new PreviewRepoCommand(this, repo, notify));
        }