private async Task SaveFilterAsync() { var pop = await _dialogService.OpenLoadingPopup(); SearchParameters parameter = new SearchParameters { JobTypeIds = string.Join(",", JobTypeSelected.Cast <LookupItem>().Select(r => r.Id.ToString())), //SalaryEstimateIds = _fieldSalaryEstimateIds, CategoryIds = string.Join(",", CategorySelected.Cast <LookupItem>().Select(r => r.Id.ToString())), LocationIds = string.Join(",", LocationSelected.Cast <LookupItem>().Select(r => r.Id.ToString())), PositionIds = string.Join(",", PositionSelected.Cast <LookupItem>().Select(r => r.Id.ToString())), SkillsIds = string.Join(",", SkillSelected.Cast <LookupItem>().Select(r => r.Id.ToString())), QualificationsIds = string.Join(",", QualificationSelected.Cast <LookupItem>().Select(r => r.Id.ToString())), TicketLicensesIds = string.Join(",", LicenceSelected.Cast <LookupItem>().Select(r => r.Id.ToString())) }; Dictionary <string, object> obj = await _candidateExploreService.SaveSearchDefinition(parameter); try { if (obj["Success"].ToString() == "true") { (CandidateMainViewModel.Current.ExplorePage as CandidateExploreViewModel).FilterParameters = parameter; await _dialogService.PopupMessage("Save Search Difinition Successefully", "#52CD9F", "#FFFFFF"); await PopupNavigation.Instance.PopAllAsync(); await(CandidateMainViewModel.Current.ExplorePage as CandidateExploreViewModel).SearchAndPopulate(); } else { await _dialogService.PopupMessage("An error has occurred, please try again!!", "#CF6069", "#FFFFFF"); } } catch { await _dialogService.PopupMessage("An error has occurred, please try again!!", "#CF6069", "#FFFFFF"); await _dialogService.CloseLoadingPopup(pop); } await _dialogService.CloseLoadingPopup(pop); }
/// <summary> /// Method is called when units HP drops below 1. /// </summary> /// <remarks> /// Note that skills are part of the UI and are thus never destroyed, only hidden. /// </remarks> //protected virtual void OnDestroyed() //{ // Cell.IsTaken = false; // MarkAsDestroyed(); // Destroy(gameObject); //} /// <summary> /// Method is called when the skill is selected. /// </summary> /// <remarks> /// The state that we transition to will be pretty eim /// </remarks> public virtual void OnSkillSelected() { SetState(new SkillStateMarkedAsSelected(this)); if (SkillSelected != null) SkillSelected.Invoke(this, new EventArgs()); }
private void OnSkillSelected(Skill skillA, Skill skillB) { SkillSelected?.Invoke(skillA, skillB); }