private async Task SelectCompanyTabAsync() { CurrentExploreItem = new ExploreItem { ExploreCategory = ExploreCategory.Companies }; await SearchAndPopulate(); }
private async Task SelectJobTabAsync() { CurrentExploreItem = new ExploreItem { ExploreCategory = ExploreCategory.Jobs }; await SearchAndPopulate(); }
private async Task RecentExploreListView_ItemTappedAsync(object obj) { if (obj is ExploreItem item) { CurrentExploreItem = new ExploreItem(item); await SearchAndPopulate(); } }
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(); }
public ExploreItem(ExploreItem obj) { this.Title = obj.Title; this.Location = obj.Location; this.ExploreCategory = obj.ExploreCategory; }
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); }
private void OnClearLocationSearch() { CurrentExploreItem.Location = string.Empty; CurrentExploreItem = new ExploreItem(CurrentExploreItem); IsLocationSearchFocused = true; }
private void OnClearTitleSearch() { CurrentExploreItem.Title = string.Empty; CurrentExploreItem = new ExploreItem(CurrentExploreItem); IsTitleSearchFocused = true; }
private void OnClearSearch() { CurrentExploreItem = new ExploreItem(); IsSearchFocused = true; }