コード例 #1
0
        public DeclarationViewModel(PageService pageservice,
                                    UserService userService,
                                    EventBus eventBus,
                                    BL.DeclarationService declarationService) : base(pageservice)
        {
            this.userService        = userService;
            this.eventBus           = eventBus;
            this.declarationService = declarationService;

            Declaration = declarationService.GetDeclaration();

            IsPaid = Declaration.DecStatus == DecStatus.ActivePaid && declarationService.IsEdit;
            init();
        }