Ejemplo n.º 1
0
        public bool Initialize(out Exception error)
        {
            error          = null;
            NetworkScanner = new NetworkScannerN();

            //Set new data handler
            NetworkScanner.NewNetworkDataEvent += NetworkScannerNewNetworkDataEvent;


            //GPS
            GpsControl = new GpsController();

            Logger = new GpxDataLogger {
                AutoSave = true, AutoSaveInterval = TimeSpan.FromSeconds(10)
            };

            //Null scanning
            _tNullScan.Elapsed += TNullScanElapsed;

            //Init the interface manager
            InterfaceManager.Instance.Init(out error);

            return(true);
        }
Ejemplo n.º 2
0
        public bool Initialize(out Exception error)
        {
            error = null;
            NetworkScanner = new NetworkScannerN();

            //Set new data handler
            NetworkScanner.NewNetworkDataEvent += NetworkScannerNewNetworkDataEvent;


            //GPS
            GpsControl = new GpsController();

            Logger = new GpxDataLogger { AutoSave = true, AutoSaveInterval = TimeSpan.FromSeconds(10) };

            //Null scanning
            _tNullScan.Elapsed += TNullScanElapsed;

            //Init the interface manager
            InterfaceManager.Instance.Init(out error);

            return true;
        }