예제 #1
0
        public AddRolesViewModel(IOrganizationUnitAppService appService,
                                 IDataPagerService dataPager)
        {
            input           = new FindOrganizationUnitRolesInput();
            QueryCommand    = new DelegateCommand(Query);
            this.appService = appService;
            this.dataPager  = dataPager;

            dataPager.OnPageIndexChangedEventhandler += RoleOnPageIndexChangedEventhandler;
        }
        public DynamicEditValuesViewModel(
            IDynamicPropertyValueAppService appService,
            IApplicationContext context,
            IDataPagerService dataPager,
            IHostDialogService dialog)
        {
            this.appService = appService;
            this.context    = context;
            this.dataPager  = dataPager;
            this.dialog     = dialog;
            RefreshCommand  = new DelegateCommand(Refresh);
            ShowAddCommand  = new DelegateCommand(() => IsAdd = true);
            AddValueCommand = new DelegateCommand(AddValue);

            EditCommand   = new DelegateCommand <DynamicPropertyValueDto>(Edit);
            DeleteCommand = new DelegateCommand <DynamicPropertyValueDto>(Delete);
        }
예제 #3
0
        public DynamicEntityDetailsViewModel(
            IDynamicPropertyAppService propertyAppService,
            IDynamicEntityPropertyAppService appService,
            IApplicationContext context,
            IDataPagerService dataPager,
            IHostDialogService dialog)
        {
            this.dialog             = dialog;
            this.context            = context;
            this.dataPager          = dataPager;
            this.appService         = appService;
            this.propertyAppService = propertyAppService;

            items = new ObservableCollection <DynamicPropertyDto>();

            RefreshCommand  = new DelegateCommand(Refresh);
            ShowAddCommand  = new DelegateCommand(ShowAdd);
            AddValueCommand = new DelegateCommand(AddValue);
            DeleteCommand   = new DelegateCommand <DynamicEntityPropertyDto>(Delete);
        }