コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }