public PipeConstractionReportViewModel( IMillReportsRepository repo, IMillPipeSizeTypeRepository repoPipeType, IUserNotify notify) { this.repo = repo; this.notify = notify; this.repoPipeType = repoPipeType; createCommand = ViewModelSource .Create <CreatePipeReportCommand>(() => new CreatePipeReportCommand(this, repo, notify)); previewCommand = ViewModelSource .Create <PreviewPipeReportCommand>(() => new PreviewPipeReportCommand(this, repo, notify)); pipeTypes = repoPipeType.GetAll(); foreach (var pt in pipeTypes) { checkedPipeTypes.Add(pt); } }
public PipeConstractionReportViewModel( IMillReportsRepository repo, IMillPipeSizeTypeRepository repoPipeType, IUserNotify notify) { this.repo = repo; this.notify = notify; this.repoPipeType = repoPipeType; createCommand = ViewModelSource .Create<CreatePipeReportCommand>(() => new CreatePipeReportCommand(this, repo, notify)); previewCommand = ViewModelSource .Create<PreviewPipeReportCommand>(() => new PreviewPipeReportCommand(this, repo, notify)); pipeTypes = repoPipeType.GetAll(); foreach (var pt in pipeTypes) { checkedPipeTypes.Add(pt); } }