Ejemplo n.º 1
0
 public EpisodeModel(ILogger <EpisodeModel> logger, IShowService show, IEpisodeService episode, ITagService tag, IViewsService view)
 {
     _logger  = logger;
     _show    = show;
     _episode = episode;
     _tag     = tag;
     _view    = view;
 }
 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 RegistrationController(ILogger <RegistrationController> logger,
                               IFetchService fetchService,
                               IViewsService vewingService,
                               IRenderService renderService)
 {
     _logger        = logger;
     _fetchService  = fetchService;
     _vewingService = vewingService;
     _renderService = renderService;
 }
 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 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;
 }
Ejemplo n.º 7
0
        public SessionsViewModel(ISessionsControl control, IViewsService views, SessionRecordingViewModelFactory factory, SessionDefinitionsViewModel definitions, Dispatcher dispatcher)
        {
            _dispatcher = dispatcher;

            _control = control;
            _views   = views;

            _factory = factory;

            if (_control.CurrentRecording != null)
            {
                UpdateRecording(_control.CurrentRecording);
            }
            _control.RecordingChanged += (_, recording) => dispatcher.Invoke(() => UpdateRecording(recording));

            Definitions = definitions;
            Definitions.Selection.SelectedItemChanged += Selection_SelectedItemChanged;
        }
        public ShellViewModel(IViewsService viewsService, IServiceLocator serviceLocator, IUpdateService updateService)
        {
            _ViewsService   = viewsService;
            _ServiceLocator = serviceLocator;
            _UpdateService  = updateService;

            ExitCommand = new DelegateCommand(() => Application.Current.Shutdown());
            RealtorAgencyDictionaryCommand = new DelegateCommand(() => _ViewsService.OpenView <RealtorAgencyDictionaryViewModel>());
            DealVariantsDictionaryCommand  = new DelegateCommand(() => _ViewsService.OpenView <DealVariantsDictionaryViewModel>());
            DistrictsDictionaryCommand     = new DelegateCommand(() => _ViewsService.OpenView <DistrictsDictionaryViewModel>());

            FloorLevelDictionaryCommand  = new DelegateCommand(() => _ViewsService.OpenView <FloorLevelDictionaryViewModel>());
            LayoutDictionaryCommand      = new DelegateCommand(() => _ViewsService.OpenView <LayoutDictionaryViewModel>());
            MaterialDictionaryCommand    = new DelegateCommand(() => _ViewsService.OpenView <MaterialDictionaryViewModel>());
            OwnershipDictionaryCommand   = new DelegateCommand(() => _ViewsService.OpenView <OwnershipDictionaryViewModel>());
            RealtorDictionaryCommand     = new DelegateCommand(() => _ViewsService.OpenView <RealtorDictionaryViewModel>());
            SewageDictionaryCommand      = new DelegateCommand(() => _ViewsService.OpenView <SewageDictionaryViewModel>());
            StreetDictionaryCommand      = new DelegateCommand(() => _ViewsService.OpenView <StreetDictionaryViewModel>());
            TerraceDictionaryCommand     = new DelegateCommand(() => _ViewsService.OpenView <TerraceDictionaryViewModel>());
            ToiletTypeDictionaryCommand  = new DelegateCommand(() => _ViewsService.OpenView <ToiletTypeDictionaryViewModel>());
            WaterSupplyDictionaryCommand = new DelegateCommand(() => _ViewsService.OpenView <WaterSupplyDictionaryViewModel>());
            ConditionDictionaryCommand   = new DelegateCommand(() => _ViewsService.OpenView <ConditionDictionaryViewModel>());
            DestinationDictionaryCommand = new DelegateCommand(() => _ViewsService.OpenView <DestinationDictionaryViewModel>());

            AboutCommand        = new DelegateCommand(() => _ViewsService.OpenAboutDialog());
            CheckUpdatesCommand = new DelegateCommand(() => _UpdateService.CheckUpdates(true));
            ConfigCommand       = new DelegateCommand(() => _ViewsService.OpenConfigDialog());
            ExportToWordCommand = new DelegateCommand(ExportToWord);

            FlatsDataContext     = _ServiceLocator.GetInstance <FlatListViewModel>();
            RoomsDataContext     = _ServiceLocator.GetInstance <RoomListViewModel>();
            PlotsDataContext     = _ServiceLocator.GetInstance <PlotListViewModel>();
            HousesDataContext    = _ServiceLocator.GetInstance <HouseListViewModel>();
            ResidenceDataContext = _ServiceLocator.GetInstance <ResidenceListViewModel>();

            _UpdateService.StartPeriodicCheck();
        }
        public AdminController(IAgentService AgentService, IEventCustomerService EventCustomerService, IEventService EventService, ITipService TipService, IPropertyService PropertyService, IPropertyImageService PropertyImageService, IFeedBackService FeedBackService, ICompanyService CompanyService, ICountryService CountryService, IStateService StateService, ICityService CityService, IOfficeLocationService OfficeLocationService, ICustomerService CustomerService, IUserService UserService, IFormService FormService, IRoleDetailService RoleDetailService, IRoleService RoleService, IUserRoleService UserRoleService, IViewsService ViewsService, IBannerService BannerService)
            : base(CustomerService, UserService, RoleService, FormService, RoleDetailService, UserRoleService)
        {
            this._CustomerService       = CustomerService;
            this._UserService           = UserService;
            this._UserRoleService       = UserRoleService;
            this._OfficeLocationService = OfficeLocationService;
            this._CompanyService        = CompanyService;
            this._CountryService        = CountryService;
            this._StateService          = StateService;
            this._CityService           = CityService;

            this._AgentService         = AgentService;
            this._EventCustomerService = EventCustomerService;
            this._EventService         = EventService;
            this._CountryService       = CountryService;
            this._TipService           = TipService;
            this._PropertyService      = PropertyService;
            this._PropertyImageService = PropertyImageService;
            this._ViewsService         = ViewsService;
            this._FeedBackService      = FeedBackService;
            this._BannerService        = BannerService;
            //
        }