public void UnSelect() { LocationEventArgs args = new LocationEventArgs(); args.OldLocation = CurrentLocation; CurrentLocation = null; args.NewLocation = CurrentLocation; InnerLocations.Clear(); OnCurrentLocationChanged(args); }
public void SelectLocation(RhitLocation location) { LocationEventArgs args = new LocationEventArgs(); args.OldLocation = CurrentLocation; CurrentLocation = location; args.NewLocation = CurrentLocation; InnerLocations.Clear(); List <RhitLocation> locations = DataCollector.Instance.GetChildLocations(null, CurrentLocation.Id); if (locations != null) { foreach (RhitLocation child in locations) { InnerLocations.Add(child); } } OnCurrentLocationChanged(args); }