예제 #1
0
 public GetPropertyByIdHandler(
     IPropertiesService propertiesService,
     IMapper mapper)
 {
     _propertiesService = propertiesService;
     _mapper            = mapper;
 }
예제 #2
0
 public PropertiesQuery(
     IPropertiesService propertiesService)
 {
     FieldAsync <ListGraphType <PropertyType> >(
         "Properties",
         resolve: async context => await propertiesService.GetAllPropertiesAsync());
 }
예제 #3
0
 public UserController(
     UserManager <ApplicationUser> userManager,
     IPropertiesService propertiesService)
 {
     this.userManager       = userManager;
     this.propertiesService = propertiesService;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UrlHelper" /> class.
 /// </summary>
 /// <param name="propertiesService">The properties service.</param>
 /// <param name="propertyPrefix">The property prefix.</param>
 public UrlHelper(IPropertiesService propertiesService, string propertyPrefix)
 {
     _scheme        = propertiesService.GetValue <string>(propertyPrefix + "Scheme");
     _serverAddress = propertiesService.GetValue <string>(propertyPrefix + "ServerAddress");
     _path          = propertiesService.GetValue <string>(propertyPrefix + "ServicePath");
     _port          = propertiesService.GetValue <int>(propertyPrefix + "Port");
 }
예제 #5
0
 public HomeController(
     IPropertiesService propertiesService,
     IBlogsService blogsService)
 {
     this.propertiesService = propertiesService;
     this.blogsService      = blogsService;
 }
예제 #6
0
 public SearchPropertiesController(
     IPropertiesService propertiesService,
     ICountriesService countriesService)
 {
     this.propertiesService = propertiesService;
     this.countriesService  = countriesService;
 }
예제 #7
0
 public UpdatePropertyHandler(
     IPropertiesService propertiesService,
     IMapper mapper)
 {
     _propertiesService = propertiesService;
     _mapper            = mapper;
 }
예제 #8
0
 public CreatePropertyHandler(
     IMapper mapper,
     IPropertiesService propertiesService)
 {
     _mapper            = mapper;
     _propertiesService = propertiesService;
 }
예제 #9
0
        public DataUpdateService(IPropertiesService propertiesService, IAccountService accountService, ISettingsService settingsService)
        {
            _propertiesService = propertiesService;
            _accountService    = accountService;
            _settingsService   = settingsService;

            _urlHelper = new UrlHelper(propertiesService, "AccountService.");
        }
예제 #10
0
        public UpdateService(IPropertiesService propertiesService, IVersionService versionService, ISettingsService settingsService)
        {
            _propertiesService = propertiesService;
            _versionService    = versionService;
            _settingsService   = settingsService;

            _urlHelper = new UrlHelper(propertiesService, "AccountService.");
        }
예제 #11
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TextureDocument"/> class.
        /// </summary>
        /// <param name="editor">The editor.</param>
        /// <param name="documentType">The type of the document.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="editor"/> or <paramref name="documentType"/> is <see langword="null"/>.
        /// </exception>
        internal TextureDocument(IEditorService editor, DocumentType documentType)
            : base(editor, documentType)
        {
            _graphicsService   = editor.Services.GetInstance <IGraphicsService>().ThrowIfMissing();
            _monoGameService   = editor.Services.GetInstance <IMonoGameService>().ThrowIfMissing();
            _propertiesService = editor.Services.GetInstance <IPropertiesService>().WarnIfMissing();

            Editor.ActiveDockTabItemChanged += OnEditorDockTabItemChanged;
        }
예제 #12
0
        //--------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="TextureDocument"/> class.
        /// </summary>
        /// <param name="editor">The editor.</param>
        /// <param name="documentType">The type of the document.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="editor"/> or <paramref name="documentType"/> is <see langword="null"/>.
        /// </exception>
        internal TextureDocument(IEditorService editor, DocumentType documentType)
            : base(editor, documentType)
        {
            _graphicsService = editor.Services.GetInstance<IGraphicsService>().ThrowIfMissing();
            _monoGameService = editor.Services.GetInstance<IMonoGameService>().ThrowIfMissing();
            _propertiesService = editor.Services.GetInstance<IPropertiesService>().WarnIfMissing();

            Editor.ActiveDockTabItemChanged += OnEditorDockTabItemChanged;
        }
예제 #13
0
        public AccountService(IEventAggregator eventAggregator, IApplicationState applicationState, IPropertiesService propertiesService, ISettingsService settingsService)
        {
            _eventAggregator   = eventAggregator;
            _applicationState  = applicationState;
            _propertiesService = propertiesService;
            _settingsService   = settingsService;

            _urlHelper = new UrlHelper(propertiesService, "AccountService.");
        }
예제 #14
0
        public static void ImportJsonFile(string json, IPropertiesService service)
        {
            var propertiesDto = JsonSerializer.Deserialize <IEnumerable <PropertyAsJson> >(json);

            foreach (var prop in propertiesDto)
            {
                service.Add(prop.District, prop.Price, prop.Floor, prop.TotalFloors, prop.Size, prop.YardSize, prop.Year, prop.Type, prop.BuildingType);
                Console.Write(".");
            }
        }
예제 #15
0
        public SceneGraphToolView()
        {
            InitializeComponent();


            mPropertiesService = VEFModule.UnityContainer.Resolve(typeof(IPropertiesService), "") as IPropertiesService;

            mSceneService = VEFModule.UnityContainer.Resolve(typeof(ISceneService), "") as ISceneService;
            //mSceneService.TreeList = _treeList;
        }
예제 #16
0
 public CreateBookingHandler(
     IMapper mapper,
     IBookingsService bookingsService,
     UserResolverService userResolverService,
     IPropertiesService propertiesService)
 {
     _mapper              = mapper;
     _bookingsService     = bookingsService;
     _userResolverService = userResolverService;
     _propertiesService   = propertiesService;
 }
예제 #17
0
 public BookingsListController(IBookingsService bookingsService,
                               IPropertyImagesService propertyImagesService,
                               ICitiesService citiesService,
                               UserResolverService userResolverService,
                               IPropertiesService propertiesService)
 {
     _bookingsService       = bookingsService;
     _propertyImagesService = propertyImagesService;
     _citiesService         = citiesService;
     _userResolverService   = userResolverService;
     _propertiesService     = propertiesService;
 }
예제 #18
0
 public PropertiesController(
     ITypeOfPropertiesService typeOfPropertiesService,
     IPropertiesService propertiesService,
     UserManager <ApplicationUser> userManager,
     IWebHostEnvironment environment,
     Services.Messaging.IEmailSender emailSender)
 {
     this.typeOfPropertiesService = typeOfPropertiesService;
     this.propertiesService       = propertiesService;
     this.userManager             = userManager;
     this.environment             = environment;
     this.emailSender             = emailSender;
 }
예제 #19
0
		public MainWindowViewModel(IInteractionService message, IComicService comicManager, IPropertiesService properties)
		{
			Interaction = message;
			ComicManager = comicManager;
			Properties = properties;

			AddComicCommand = new RelayCommand(AddComic, (o) => !Downloading);
			AddRandomComicCommand = new AsyncRelayCommand(AddRandomComic);
			AddCurrentComicCommand = new AsyncRelayCommand(AddCurrentComic, (o) => !Downloading);
			RemoveComicCommand = new RelayCommand(RemoveComic, () => SelectedComic != null);
			ClearComicsCommand = new RelayCommand(() => Comics.Clear());

			LoadedCommand = new AsyncRelayCommand(Loaded);
			ClosedCommand = new AsyncRelayCommand(Closed);

			AboutCommand = new RelayCommand(About);
			ConfigurationCommand = new RelayCommand(Configuration);

			CopyLinkCommand = new RelayCommand(
				(o) => Interaction.SetClipboardText(string.Format(o as string, SelectedComic.Number)),
				(o) => SelectedComic != null && o is string);

			DeleteCacheCommand = new RelayCommand(
				() => SelectedComic?.DeleteCache(),
				() => SelectedComic != null);

			OpenLinkCommand = new RelayCommand(
				(o) => Interaction.StartProcess(string.Format(o as string, SelectedComic.Number)),
				(o) => SelectedComic != null && o is string);

			PropertyChanged += (o, e) =>
			{
				if (e.PropertyName == "SelectedComic")
				{
					RemoveComicCommand.RaiseCanExecuteChanged();
					DeleteCacheCommand.RaiseCanExecuteChanged();
					OpenLinkCommand.RaiseCanExecuteChanged();
					CopyLinkCommand.RaiseCanExecuteChanged();
				}

				if (e.PropertyName == "Downloading")
				{
					AddComicCommand.RaiseCanExecuteChanged();
					AddCurrentComicCommand.RaiseCanExecuteChanged();
					AddRandomComicCommand.RaiseCanExecuteChanged();
				}
			};
		}
        private static void PropertySearchByPrice(IPropertiesService propertiesService)
        {
            Console.Write($"Min price: ");
            var minPrice = decimal.Parse(Console.ReadLine());

            Console.Write($"Max price: ");
            var maxPrice = decimal.Parse(Console.ReadLine());

            var properties = propertiesService.SearchByPrice(minPrice, maxPrice);

            foreach (var property in properties)
            {
                Console.WriteLine
                    ($"{property.DistrictName}; {property.BuildingType}; {property.PropertyType} => {property.Price}€ => {property.Size}m²");
            }
        }
예제 #21
0
        public PropertiesMutation(IPropertiesService service)
        {
            FieldAsync <StringGraphType>(
                "createOrUpdatePropertyNote",
                arguments: new QueryArguments(
                    new QueryArgument <NonNullGraphType <CreateOrUpdatePropertyNoteInputType> > {
                Name = "propertyNote"
            }),
                resolve: async context =>
            {
                var input = await context.GetValidatedArgumentAsync <PropertyNoteInput>("propertyNote");

                await service.AddNoteToPropertyAsync(input.PropertyId, input.Note);

                return(input.Note);
            });
        }
예제 #22
0
 public OffersController(
     IFacilitiesService facilitiesService,
     IBedTypesService bedTypesService,
     IOffersService offersService,
     IPropertiesService propertiesService,
     ICurrenciesService currenciesService,
     UserManager <ApplicationUser> userManager,
     IWebHostEnvironment environment)
 {
     this.facilitiesService = facilitiesService;
     this.bedTypesService   = bedTypesService;
     this.offersService     = offersService;
     this.propertiesService = propertiesService;
     this.currenciesService = currenciesService;
     this.userManager       = userManager;
     this.environment       = environment;
 }
예제 #23
0
 public AddSLTreeItemWindowViewModel(ISLsService sLsService, ITLsService tLsService, IDLTypesService dLTypesService, ISystemAccountingSettingsService systemAccountingSettingsService, IPropertiesService propertiesService, IAccountsNaturesService accountsNaturesService)
 {
     _dLTypesService = dLTypesService;
     _sLsService     = sLsService;
     _tLsService     = tLsService;
     _systemAccountingSettingsService = systemAccountingSettingsService;
     _propertiesService      = propertiesService;
     _accountsNaturesService = accountsNaturesService;
     //  CancelCommand = new RelayCommand(OnCancel);
     SaveCommand = new RelayCommand(OnSave, CanSave);
     TLsDropDownOpenedCommand             = new RelayCommand(OnTLsDropDownOpened, () => TLs != null && TLs.Any());
     PropertiesDropDownOpenedCommand      = new RelayCommand(OnPropertiesDropDownOpened, () => Properties != null && Properties.Any());
     AccountsNaturesDropDownOpenedCommand = new RelayCommand(OnAccountsNaturesDropDownOpened, () => AccountsNatures != null && AccountsNatures.Any());
     SelectedDLTypes1 = new ObservableCollection <DLType>();
     SelectedDLTypes2 = new ObservableCollection <DLType>();
     //  SLStandardDescriptionListViewModel = SmObjectFactory.Container.GetInstance<SLStandardDescriptionListViewModel>();
     SL = new SL();
 }
예제 #24
0
        public TextDocument(IEditorService editor, DocumentType documentType)
            : base(editor, documentType)
        {
            // Optional services:
            _searchService     = editor.Services.GetInstance <ISearchService>().WarnIfMissing();
            _propertiesService = editor.Services.GetInstance <IPropertiesService>().WarnIfMissing();

            AvalonEditDocument = new AvalonEditDocument();
            SelectionMarkers   = new TextSegmentCollection <Marker>();
            SearchMarkers      = new TextSegmentCollection <Marker>();
            ErrorMarkers       = new TextSegmentCollection <Marker>();

            InitializeSearch();

            // The UndoStack indicates whether changes were made to the document.
            AvalonEditDocument.UndoStack.PropertyChanged += OnUndoStackChanged;
            AvalonEditDocument.TextChanged += OnTextChanged;

            Editor.ActiveDockTabItemChanged += OnEditorDockTabItemChanged;

            BeginInvokeUpdateProperties();
        }
예제 #25
0
        public TextDocument(IEditorService editor, DocumentType documentType)
            : base(editor, documentType)
        {
            // Optional services:
            _searchService = editor.Services.GetInstance<ISearchService>().WarnIfMissing();
            _propertiesService = editor.Services.GetInstance<IPropertiesService>().WarnIfMissing();

            AvalonEditDocument = new AvalonEditDocument();
            SelectionMarkers = new TextSegmentCollection<Marker>();
            SearchMarkers = new TextSegmentCollection<Marker>();
            ErrorMarkers = new TextSegmentCollection<Marker>();

            InitializeSearch();

            // The UndoStack indicates whether changes were made to the document.
            AvalonEditDocument.UndoStack.PropertyChanged += OnUndoStackChanged;
            AvalonEditDocument.TextChanged += OnTextChanged;

            Editor.ActiveDockTabItemChanged += OnEditorDockTabItemChanged;

            BeginInvokeUpdateProperties();
        }
 public PropertiesController(
     ICountriesService countriesService,
     ITownsService townsService,
     ICurrenciesService currenciesService,
     IPropertyCategoriesService propertyCategoriesService,
     IPropertiesService propertiesService,
     UserManager <ApplicationUser> userManager,
     IFacilitiesService facilitiesService,
     IRulesService rulesService,
     IWebHostEnvironment environment,
     IOffersService offersService)
     : base(townsService, currenciesService)
 {
     this.countriesService          = countriesService;
     this.propertyCategoriesService = propertyCategoriesService;
     this.propertiesService         = propertiesService;
     this.userManager       = userManager;
     this.facilitiesService = facilitiesService;
     this.rulesService      = rulesService;
     this.environment       = environment;
     this.offersService     = offersService;
 }
예제 #27
0
        //--------------------------------------------------------------
        #region Creation & Cleanup
        //--------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance of the <see cref="ModelDocument"/> class.
        /// </summary>
        /// <param name="editor">The editor.</param>
        /// <param name="documentType">The type of the document.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="editor"/> or <paramref name="documentType"/> is <see langword="null"/>.
        /// </exception>
        internal ModelDocument(IEditorService editor, DocumentType documentType)
            : base(editor, documentType)
        {
            _modelsExtension        = editor.Extensions.OfType <ModelsExtension>().FirstOrDefault().ThrowIfMissing();
            _useDigitalRuneGraphics = _modelsExtension.UseDigitalRuneGraphics;

            var services = Editor.Services;

            _documentService   = services.GetInstance <IDocumentService>().ThrowIfMissing();
            _statusService     = services.GetInstance <IStatusService>().ThrowIfMissing();
            _outputService     = services.GetInstance <IOutputService>().ThrowIfMissing();
            _animationService  = services.GetInstance <IAnimationService>().ThrowIfMissing();
            _monoGameService   = services.GetInstance <IMonoGameService>().ThrowIfMissing();
            _outlineService    = services.GetInstance <IOutlineService>().WarnIfMissing();
            _propertiesService = services.GetInstance <IPropertiesService>().WarnIfMissing();
            _errorService      = services.GetInstance <IErrorService>().WarnIfMissing();

            Editor.ActiveDockTabItemChanged += OnEditorDockTabItemChanged;

            UpdateProperties();
            UpdateOutline();
        }
예제 #28
0
		public ConfigurationViewModel(IInteractionService message, IComicService comicManager, IPropertiesService properties)
		{
			Interaction = message;
			ComicManager = comicManager;
			Properties = properties;

			LoadFromProperties();

			OkCommand = new RelayCommand(Ok, (o) => !Busy);
			CancelCommand = new RelayCommand(Cancel, (o) => !Busy);
			ResetCommand = new RelayCommand(Reset);
			ClearCacheCommand = new AsyncRelayCommand(ClearCache, (o) => !Busy);

			PropertyChanged += (o, e) =>
			{
				if (e.PropertyName == "Busy")
				{
					OkCommand.RaiseCanExecuteChanged();
					CancelCommand.RaiseCanExecuteChanged();
					ClearCacheCommand.RaiseCanExecuteChanged();
				}
			};
		}
예제 #29
0
 public TagService(ApplicationDbContext dbContext, IPropertiesService propertiesService)
 {
     this.dbContext         = dbContext;
     this.propertiesService = propertiesService;
 }
 public RentsFilterView(IClientsService clients, IPropertiesService properties)
 {
     this.clients    = clients;
     this.properties = properties;
 }
 public PropertiesController(IPropertiesService propertiesService)
 {
     this._propertiesService = propertiesService;
 }
예제 #32
0
 public TenantsController(ITenantsService tenantsService, IPropertiesService propertiesService)
 {
     this.tenantsService    = tenantsService;
     this.propertiesService = propertiesService;
 }
 public HomeController(IPropertiesService service)
 {
     _service = service;
 }
예제 #34
0
 public GetAllPropertiesHandler(IPropertiesService propertiesService, IMapper mapper)
 {
     _propertiesService = propertiesService;
     _mapper            = mapper;
 }
예제 #35
0
        //--------------------------------------------------------------
        #region Creation & Cleanup
        //--------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance of the <see cref="ModelDocument"/> class.
        /// </summary>
        /// <param name="editor">The editor.</param>
        /// <param name="documentType">The type of the document.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="editor"/> or <paramref name="documentType"/> is <see langword="null"/>.
        /// </exception>
        internal ModelDocument(IEditorService editor, DocumentType documentType)
          : base(editor, documentType)
        {
            _modelsExtension = editor.Extensions.OfType<ModelsExtension>().FirstOrDefault().ThrowIfMissing();
            _useDigitalRuneGraphics = _modelsExtension.UseDigitalRuneGraphics;

            var services = Editor.Services;
            _documentService = services.GetInstance<IDocumentService>().ThrowIfMissing();
            _statusService = services.GetInstance<IStatusService>().ThrowIfMissing();
            _outputService = services.GetInstance<IOutputService>().ThrowIfMissing();
            _animationService = services.GetInstance<IAnimationService>().ThrowIfMissing();
            _monoGameService = services.GetInstance<IMonoGameService>().ThrowIfMissing();
            _outlineService = services.GetInstance<IOutlineService>().WarnIfMissing();
            _propertiesService = services.GetInstance<IPropertiesService>().WarnIfMissing();
            _errorService = services.GetInstance<IErrorService>().WarnIfMissing();

            Editor.ActiveDockTabItemChanged += OnEditorDockTabItemChanged;

            UpdateProperties();
            UpdateOutline();
        }