Пример #1
0
        public void UnSelect()
        {
            LocationEventArgs args = new LocationEventArgs();

            args.OldLocation = CurrentLocation;
            CurrentLocation  = null;
            args.NewLocation = CurrentLocation;
            InnerLocations.Clear();
            OnCurrentLocationChanged(args);
        }
Пример #2
0
        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);
        }