public void ReloadClicked() { FirstName = ""; LastName = ""; SelectedCountry = ""; LocationName = ""; ChildID = ""; SearchResult = ""; SearchErrorVisible = false; SelectAll = false; DOBIsValid = false; EnrollmentDateIsValid = false; IsTableBottomLineVisible = false; SearchErrorVisible = false; SelectedLocations.Clear(); SelectedLocations = new List <string>(); foreach (var item in LocationsObservableCollection) { if (item.IsSelected) { item.IsSelected = false; } } SearchClicked(null, null); return; }
public void BeginSelectLocation() { SelectedLocations.Clear(); IsInBrowseMode = false; IsInEditMode = false; IsInSelectMode = true; SelectionMode = SelectionMode.Multiple; IsItemClickEnabled = false; }
private void InitializeLocations() { SelectedLocations.CollectionChanged -= SelectedLocations_CollectionChanged; SelectedLocations.Clear(); foreach (var location in User.Locations) { if (_settingsService.Settings.Locations.Any(l => l.Id == location.Id)) { SelectedLocations.Add(location); } } SelectedLocations.CollectionChanged += SelectedLocations_CollectionChanged; }