Exemple #1
0
        private void ScanCallback(ScanEvent obj)
        {
            var systemobject = SystemObject.GetObject(obj);

            switch (systemobject.ObjectType)
            {
            case ObjectType.Star:
                HandleStarObject((StarObject)systemobject);
                break;

            case ObjectType.Planet:
                HandlePlanetObject((PlanetObject)systemobject);
                break;

            case ObjectType.ClusterBelt:
                HandleClusterBeltObject((ClusterBeltObject)systemobject);
                break;

            case ObjectType.Ring:
                HandleRingObject((RingObject)systemobject);
                break;

            default:
                break;
            }
        }
        private void FSSScanCallback(ScanEvent obj)
        {
            var systemobject = SystemObject.GetObject(obj);

            _objects.Add(systemobject);

            SetValue(() => CurrentBodySingals, _objects.Where(m => m.ObjectType == ObjectType.Star || m.ObjectType == ObjectType.Planet).Count());
            SetValue(() => CurrentNonBodySingals, _objects.Where(m => m.ObjectType == ObjectType.ClusterBelt).Count());
            OnAction("AddObject");
        }