예제 #1
0
        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;
        }
예제 #2
0
 public void BeginSelectLocation()
 {
     SelectedLocations.Clear();
     IsInBrowseMode     = false;
     IsInEditMode       = false;
     IsInSelectMode     = true;
     SelectionMode      = SelectionMode.Multiple;
     IsItemClickEnabled = false;
 }
예제 #3
0
        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;
        }