public RealEstateListViewModel(IRealEstateService <T> service, IMessageService messageService,
                                       IDistrictService districtService, IRealtorService realtorService,
                                       IOwnershipService ownershipService, IDealVariantService dealVariantService,
                                       IConditionService conditionService,
                                       IExcelService excelService, IWordService wordService, IServiceLocator serviceLocator)
        {
            _RealEstateService  = service;
            _MessageService     = messageService;
            _DistrictService    = districtService;
            _RealtorService     = realtorService;
            _OwnershipService   = ownershipService;
            _DealVariantService = dealVariantService;
            _ConditionService   = conditionService;
            _ServiceLocator     = serviceLocator;
            _excelService       = excelService;
            _wordService        = wordService;

            AddCommand                  = new DelegateCommand(Add);
            ChangeCommand               = new DelegateCommand(Change);
            DeleteCommand               = new DelegateCommand(Delete);
            UpdateCommand               = new DelegateCommand(Update);
            ClearFilterCommand          = new DelegateCommand(ClearFilter);
            ApplyFilterCommand          = new DelegateCommand(ApplyFilter);
            ExportToExcelCommand        = new DelegateCommand(ExportToExcel);
            ExportToWordCommand         = new DelegateCommand(ExportToWord);
            ExportToWordSelectedCommand = new DelegateCommand(ExportToWordSelected);

            ChangeInGridCommand = new DelegateCommand <RealEstateViewModel <T> >(ChangeInGrid);
            DeleteInGridCommand = new DelegateCommand <RealEstateViewModel <T> >(DeleteInGrid);

            SelectedEntities = new List <RealEstateViewModel <T> >();
        }
Example #2
0
 public void Construct(IOwnershipService ownershipService,
                       CharacterMainStateMachineContext mainStateMachineContext,
                       CharacterLocomotionHandler locomotionHandler)
 {
     _ownershipService        = ownershipService;
     _mainStateMachineContext = mainStateMachineContext;
     _locomotionHandler       = locomotionHandler;
 }
 public PlotEditViewModel(IPlotService service, IMessageService messageService,
                          IDistrictService districtService, IViewsService viewsService,
                          IRealtorService realtorService, IOwnershipService ownershipService,
                          IDealVariantService dealVariantService, IConditionService conditionalService)
     : base(service, messageService, districtService, realtorService, ownershipService, dealVariantService, conditionalService)
 {
     _ViewsService = viewsService;
 }
 public HouseListViewModel(IHouseService service, IMessageService messageService,
                           IDistrictService districtService, IRealtorService realtorService,
                           IOwnershipService ownershipService, IDealVariantService dealVariantService, IConditionService conditionService,
                           IExcelService excelService, IWordService wordService,
                           IServiceLocator serviceLocator)
     : base(service, messageService, districtService, realtorService, ownershipService, dealVariantService, conditionService, excelService,
            wordService, serviceLocator)
 {
 }
 public InvitationController(IAppService appService,
                             IOwnershipService ownershipService,
                             ISubmitterService submitterService,
                             IEmailService emailService)
 {
     _appService       = appService;
     _ownershipService = ownershipService;
     _submitterService = submitterService;
     _emailService     = emailService;
 }
 public ResidenceEditViewModel(IResidenceService residenceService, IMessageService messageService,
                               IDistrictService districtService, IViewsService viewsService, IRealtorService realtorService,
                               IOwnershipService ownershipService, IDealVariantService dealVariantService,
                               IMaterialService materialService, IConditionService conditionalService, IDestinationService destinationService)
     : base(residenceService, messageService, districtService, realtorService, ownershipService, dealVariantService, conditionalService)
 {
     _ViewsService       = viewsService;
     _MaterialService    = materialService;
     _DestinationService = destinationService;
 }
 public CharacterBehaviorContext([Inject(Id = "id")] string characterId, [Inject(Id = "stats")] CharacterStats stats,
                                 [Inject(Id = "playerId")] int playerId, Transform transform, IOwnershipService ownershipService,
                                 CharacterAnimatorController animatorController, CharacterLocomotionHandler locomotionHandler)
 {
     CharacterId        = characterId;
     Stats              = stats;
     PlayerId           = playerId;
     Transform          = transform;
     OwnershipService   = ownershipService;
     AnimatorController = animatorController;
     LocomotionHandler  = locomotionHandler;
 }
 public HouseEditViewModel(IHouseService service, IMessageService messageService,
                           IDistrictService districtService, IViewsService viewsService,
                           IRealtorService realtorService, IOwnershipService ownershipService,
                           IDealVariantService dealVariantService, IWaterSupplyService waterSupplyService,
                           ISewageService sewageService, IMaterialService materialService, IConditionService conditionalService)
     : base(service, messageService, districtService, realtorService, ownershipService, dealVariantService, conditionalService)
 {
     _ViewsService       = viewsService;
     _WaterSupplyService = waterSupplyService;
     _SewageService      = sewageService;
     _MaterialService    = materialService;
 }
 public RoomEditViewModel(IRoomService service, IMessageService messageService,
                          IDistrictService districtService, IViewsService viewsService,
                          IRealtorService realtorService, IOwnershipService ownershipService,
                          IDealVariantService dealVariantService,
                          ITerraceService terraceService, IMaterialService materialService,
                          ILayoutService layoutService, IFloorLevelService floorLevelService, IConditionService conditionalService)
     : base(service, messageService, districtService, realtorService, ownershipService, dealVariantService, conditionalService)
 {
     _ViewsService      = viewsService;
     _TerraceService    = terraceService;
     _MaterialService   = materialService;
     _LayoutService     = layoutService;
     _FloorLevelService = floorLevelService;
 }
 private void CreateServices()
 {
     dealVariantService = _serviceLocator.GetInstance <DealVariantService>();
     districtService    = _serviceLocator.GetInstance <IDistrictService>();
     floorLevelService  = _serviceLocator.GetInstance <IFloorLevelService>();
     layoutService      = _serviceLocator.GetInstance <ILayoutService>();
     materialService    = _serviceLocator.GetInstance <IMaterialService>();
     ownershipService   = _serviceLocator.GetInstance <IOwnershipService>();
     realtorService     = _serviceLocator.GetInstance <IRealtorService>();
     sewageService      = _serviceLocator.GetInstance <ISewageService>();
     streetService      = _serviceLocator.GetInstance <IStreetService>();
     terraceService     = _serviceLocator.GetInstance <ITerraceService>();
     toiletTypeService  = _serviceLocator.GetInstance <IToiletTypeService>();
     waterSupplyService = _serviceLocator.GetInstance <IWaterSupplyService>();
     flatService        = _serviceLocator.GetInstance <IFlatService>();
     houseService       = _serviceLocator.GetInstance <IHouseService>();
     plotService        = _serviceLocator.GetInstance <IPlotService>();
     residenceService   = _serviceLocator.GetInstance <IResidenceService>();
     roomService        = _serviceLocator.GetInstance <IRoomService>();
 }
        public RealEstateEditViewModel(IRealEstateService <T> service, IMessageService messageService,
                                       IDistrictService districtService, IRealtorService realtorService,
                                       IOwnershipService ownershipService, IDealVariantService dealVariantService, IConditionService conditionService)
        {
            _RealEstateService  = service;
            _MessageService     = messageService;
            _DistrictService    = districtService;
            _RealtorService     = realtorService;
            _OwnershipService   = ownershipService;
            _DealVariantService = dealVariantService;
            _ConditionService   = conditionService;
            PropertyChanged    += (sender, args) =>
            {
                OkCommand.RaiseCanExecuteChanged();
            };

            OkCommand = new DelegateCommand(() =>
            {
                var mode  = _Id == 0 ? EditEndedMode.Add : EditEndedMode.Edit;
                var error = Error;
                if (error == null)
                {
                    UpdateModelFromValues();
                    SaveToDatabase();
                    CloseDialog();
                    OnEditEnded(mode, DbEntity);
                }
                else
                {
                    _MessageService.ShowMessage(error, "Ошибка", image: MessageBoxImage.Error);
                }
            }, CanOk);

            CancelCommand = new DelegateCommand(() =>
            {
                UpdateValuesFromModel();
                CloseDialog();
                OnEditEnded(EditEndedMode.Cancel, null);
            }, CanCancel);
        }
        public void Construct(StateMachine stateMachine, InputManager inputManager, IMessageBus messageBus,
                              [Inject(Id = "id")] string entityId, [Inject(Id = "playerId")] int playerId, [Inject(Id = "stats")] CharacterStats stats,
                              CharacterMainStateMachineContext mainStateMachineContext,
                              CharacterSecondaryMovementStateMachineContext secondaryMovementStateMachineContext,
                              CharacterCombatStateMachineContext combatStateMachineContext,
                              CharacterBehaviorContext behaviorContext, CharacterPowerupContext powerupContext,
                              CharacterLocomotionHandler locomotionHandler, CharacterHurtBoxHandler hurtBoxHandler,
                              IOwnershipService ownershipService, Camera mainCamera,
                              TargetGroupController targetGroupController, PlayerController playerController,
                              MainCameraController mainCameraController, GroundCheck groundCheck, MovementColliderActivator colliderActivator,
                              IResourceFactory resourceFactory, CharacterAnimatorController animtorController)
        {
            _stateMachine              = stateMachine;
            _inputManager              = inputManager;
            EntityId                   = entityId;
            Stats                      = stats;
            PlayerId                   = playerId;
            _messageBus                = messageBus;
            _locomotionHandler         = locomotionHandler;
            _hurtBoxHandler            = hurtBoxHandler;
            _ownershipService          = ownershipService;
            _mainCamera                = mainCamera;
            _targetGroupController     = targetGroupController;
            _playerController          = playerController;
            _mainCameraController      = mainCameraController;
            _groundCheck               = groundCheck;
            _movementColliderActivator = colliderActivator;
            _resourceFactory           = resourceFactory;
            _animtorController         = animtorController;

            _mainStateMachineContext = mainStateMachineContext;
            _secondaryMovementStateMachineContext = secondaryMovementStateMachineContext;
            _combatStateMachineContext            = combatStateMachineContext;
            _behaviorContext = behaviorContext;
            _powerupContext  = powerupContext;
        }
 public OwnershipDictionaryViewModel(IServiceLocator serviceLocator, IOwnershipService service, IMessageService messageService) : base(serviceLocator, service, messageService)
 {
 }
Example #14
0
 public OwnershipController(IOwnershipService ownershipService,
                            ISubmitterService submitterService)
 {
     _ownershipService = ownershipService;
     _submitterService = submitterService;
 }
 public OwnershipViewModel(IOwnershipService service) : base(service)
 {
 }