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