Exemplo n.º 1
0
 private async Task SelectCompanyTabAsync()
 {
     CurrentExploreItem = new ExploreItem {
         ExploreCategory = ExploreCategory.Companies
     };
     await SearchAndPopulate();
 }
Exemplo n.º 2
0
 private async Task SelectJobTabAsync()
 {
     CurrentExploreItem = new ExploreItem {
         ExploreCategory = ExploreCategory.Jobs
     };
     await SearchAndPopulate();
 }
Exemplo n.º 3
0
 private async Task RecentExploreListView_ItemTappedAsync(object obj)
 {
     if (obj is ExploreItem item)
     {
         CurrentExploreItem = new ExploreItem(item);
         await SearchAndPopulate();
     }
 }
Exemplo n.º 4
0
        private void RenderLandingPage()
        {
            IsBackButtonVisible       = false;
            IsTriggerFocusVisible     = true;
            IsCancelButtonVisible     = true;
            IsFilterButtonVisible     = false;
            IsSearchViewVisible       = true;
            IsResultViewVisible       = false;
            IsNavigationSearchVisible = true;
            IsSearchDetailVisible     = false;

            FilterParameters.CurrentPage = 1;
            FilterEmployer.CurrentPage   = 1;

            CandidateMainViewModel.Current.TabHeaderMode = TabDisplayMode.NoHeader;

            CurrentExploreItem = new ExploreItem();
        }
Exemplo n.º 5
0
 public ExploreItem(ExploreItem obj)
 {
     this.Title           = obj.Title;
     this.Location        = obj.Location;
     this.ExploreCategory = obj.ExploreCategory;
 }
Exemplo n.º 6
0
        public async Task SearchAndPopulate()
        {
            var pop = await _dialogService.OpenLoadingPopup();

            IsBackButtonVisible       = true;
            IsTriggerFocusVisible     = true;
            IsCancelButtonVisible     = false;
            IsFilterButtonVisible     = true;
            IsSearchViewVisible       = false;
            IsResultViewVisible       = true;
            IsNavigationSearchVisible = false;
            IsSearchDetailVisible     = false;
            SelectedIndex             = (int)CurrentExploreItem.ExploreCategory;
            CandidateMainViewModel.Current.TabHeaderMode = TabDisplayMode.ImageWithText;
            CurrentExploreItem = new ExploreItem(CurrentExploreItem);

            //Get Vacancies
            FilterParameters.Keyword  = CurrentExploreItem.Title;
            FilterParameters.Location = CurrentExploreItem.Location;
            Dictionary <string, object> obj = await _candidateExploreService.GetCandidateJobsSearch(FilterParameters);

            if (obj["Jobs"] != null)
            {
                Vacancies = JsonConvert.DeserializeObject <ObservableCollection <ContactJobs> >(obj["Jobs"].ToString());
            }
            else
            {
                Vacancies = new ObservableCollection <ContactJobs>();
            }

            if (Vacancies.Count < PageSize)
            {
                LoadMoreIsVisible = false;
            }
            else
            {
                LoadMoreIsVisible = true;
            }

            //Get Companies
            FilterEmployer.KeySearch1 = CurrentExploreItem.Title;
            FilterEmployer.KeySearch2 = CurrentExploreItem.Location;

            Dictionary <string, object> objEmployerlist = await _employerJobService.GetEmployerList(FilterEmployer);

            if (objEmployerlist["employers"] != null)
            {
                Companies = JsonConvert.DeserializeObject <ObservableCollection <Models.Account> >(objEmployerlist["employers"].ToString());
            }
            else
            {
                Companies = new ObservableCollection <Models.Account>();
            }

            if (Companies.Count < PageSize)
            {
                CompaniesLoadMoreIsVisible = false;
            }
            else
            {
                CompaniesLoadMoreIsVisible = true;
            }

            await _dialogService.CloseLoadingPopup(pop);
        }
Exemplo n.º 7
0
 private void OnClearLocationSearch()
 {
     CurrentExploreItem.Location = string.Empty;
     CurrentExploreItem          = new ExploreItem(CurrentExploreItem);
     IsLocationSearchFocused     = true;
 }
Exemplo n.º 8
0
 private void OnClearTitleSearch()
 {
     CurrentExploreItem.Title = string.Empty;
     CurrentExploreItem       = new ExploreItem(CurrentExploreItem);
     IsTitleSearchFocused     = true;
 }
Exemplo n.º 9
0
 private void OnClearSearch()
 {
     CurrentExploreItem = new ExploreItem();
     IsSearchFocused    = true;
 }