public void RefreshCities()
        {
            CityList.Clear();
            RequestService.GetCities().ToList().ForEach(c => CityList.Add(c));
            OnPropertyChanged(nameof(CityList));
            SelectedCity = CityList.FirstOrDefault();

            CompanyList.Clear();
            RequestService.GetServiceCompanies().ToList().ForEach(c => CompanyList.Add(c));
            OnPropertyChanged(nameof(CompanyList));
        }
 public void ClearLogic()
 {
     CompanyList.Clear();
     SetAsEmptySelection();
 }
Beispiel #3
0
 public void Clear()
 {
     companies.Clear();
 }