public GetPropertyByIdHandler( IPropertiesService propertiesService, IMapper mapper) { _propertiesService = propertiesService; _mapper = mapper; }
public PropertiesQuery( IPropertiesService propertiesService) { FieldAsync <ListGraphType <PropertyType> >( "Properties", resolve: async context => await propertiesService.GetAllPropertiesAsync()); }
public UserController( UserManager <ApplicationUser> userManager, IPropertiesService propertiesService) { this.userManager = userManager; this.propertiesService = propertiesService; }
/// <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"); }
public HomeController( IPropertiesService propertiesService, IBlogsService blogsService) { this.propertiesService = propertiesService; this.blogsService = blogsService; }
public SearchPropertiesController( IPropertiesService propertiesService, ICountriesService countriesService) { this.propertiesService = propertiesService; this.countriesService = countriesService; }
public UpdatePropertyHandler( IPropertiesService propertiesService, IMapper mapper) { _propertiesService = propertiesService; _mapper = mapper; }
public CreatePropertyHandler( IMapper mapper, IPropertiesService propertiesService) { _mapper = mapper; _propertiesService = propertiesService; }
public DataUpdateService(IPropertiesService propertiesService, IAccountService accountService, ISettingsService settingsService) { _propertiesService = propertiesService; _accountService = accountService; _settingsService = settingsService; _urlHelper = new UrlHelper(propertiesService, "AccountService."); }
public UpdateService(IPropertiesService propertiesService, IVersionService versionService, ISettingsService settingsService) { _propertiesService = propertiesService; _versionService = versionService; _settingsService = settingsService; _urlHelper = new UrlHelper(propertiesService, "AccountService."); }
/// <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; }
//-------------------------------------------------------------- /// <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; }
public AccountService(IEventAggregator eventAggregator, IApplicationState applicationState, IPropertiesService propertiesService, ISettingsService settingsService) { _eventAggregator = eventAggregator; _applicationState = applicationState; _propertiesService = propertiesService; _settingsService = settingsService; _urlHelper = new UrlHelper(propertiesService, "AccountService."); }
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("."); } }
public SceneGraphToolView() { InitializeComponent(); mPropertiesService = VEFModule.UnityContainer.Resolve(typeof(IPropertiesService), "") as IPropertiesService; mSceneService = VEFModule.UnityContainer.Resolve(typeof(ISceneService), "") as ISceneService; //mSceneService.TreeList = _treeList; }
public CreateBookingHandler( IMapper mapper, IBookingsService bookingsService, UserResolverService userResolverService, IPropertiesService propertiesService) { _mapper = mapper; _bookingsService = bookingsService; _userResolverService = userResolverService; _propertiesService = propertiesService; }
public BookingsListController(IBookingsService bookingsService, IPropertyImagesService propertyImagesService, ICitiesService citiesService, UserResolverService userResolverService, IPropertiesService propertiesService) { _bookingsService = bookingsService; _propertyImagesService = propertyImagesService; _citiesService = citiesService; _userResolverService = userResolverService; _propertiesService = propertiesService; }
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; }
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²"); } }
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); }); }
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; }
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(); }
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 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; }
//-------------------------------------------------------------- #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(); }
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(); } }; }
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; }
public TenantsController(ITenantsService tenantsService, IPropertiesService propertiesService) { this.tenantsService = tenantsService; this.propertiesService = propertiesService; }
public HomeController(IPropertiesService service) { _service = service; }
public GetAllPropertiesHandler(IPropertiesService propertiesService, IMapper mapper) { _propertiesService = propertiesService; _mapper = mapper; }
//-------------------------------------------------------------- #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(); }