Пример #1
0
        public SearchBoxModel(IUnitOfWork unitOfWork, IInMemoryApplicationSettingModel inMemoryApplicationSettingModel, WhereToViewModel whereToViewModel, SearchType searchType, IBumbleApiService BumbleApiService, User user, INavigationService navigationService)
        {
            this.Type              = searchType;
            this.TripOptions       = new TripOptionModel();
            this.BumbleApiService  = BumbleApiService;
            this.navigationService = navigationService;
            this.user              = user;
            this.whereToViewModel  = whereToViewModel;
            this.unitOfWork        = unitOfWork;
            this.inMemoryApplicationSettingModel = inMemoryApplicationSettingModel;

            switch (searchType)
            {
            case SearchType.Location:
                this.TextLocation = AppResources.WhereToLocationTextBoxWaterMark;
                break;

            case SearchType.Destination:
                this.TextDestination = AppResources.WhereToDestinationTextBoxWaterMark;
                break;
            }
        }
Пример #2
0
 public AggregateService(IUnitOfWork unitOfWork, IInMemoryApplicationSettingModel inMemoryApplicationSettingModel, INavigationService navigationService)
 {
     this.UnitOfWork = unitOfWork;
     this.NavigationService = navigationService;
     this.InMemoryApplicationSettingModel = inMemoryApplicationSettingModel;
 }
Пример #3
0
 public AggregateService(IUnitOfWork unitOfWork, IInMemoryApplicationSettingModel inMemoryApplicationSettingModel, INavigationService navigationService)
 {
     this.UnitOfWork        = unitOfWork;
     this.NavigationService = navigationService;
     this.InMemoryApplicationSettingModel = inMemoryApplicationSettingModel;
 }
Пример #4
0
        public SearchBoxModel(IUnitOfWork unitOfWork, IInMemoryApplicationSettingModel inMemoryApplicationSettingModel, WhereToViewModel whereToViewModel, SearchType searchType, IBumbleApiService BumbleApiService, User user, INavigationService navigationService)
        {
            this.Type = searchType;
            this.TripOptions = new TripOptionModel();
            this.BumbleApiService = BumbleApiService;
            this.navigationService = navigationService;
            this.user = user;
            this.whereToViewModel = whereToViewModel;
            this.unitOfWork = unitOfWork;
            this.inMemoryApplicationSettingModel = inMemoryApplicationSettingModel;

            switch (searchType)
            {
                case SearchType.Location:
                    this.TextLocation = AppResources.WhereToLocationTextBoxWaterMark;
                    break;
                case SearchType.Destination:
                    this.TextDestination = AppResources.WhereToDestinationTextBoxWaterMark;
                    break;
            }
        }