Beispiel #1
0
        private void ScannerScanComplete(object sender, ScanCompleteEventArgs e)
        {
            RefreshAll();

            //Log it!
            if (_scanner.Logger != null && _scanner.Logger.Enabled)
            {
                //Console.WriteLine(_sc.GetLastScan().Length);
                _scanner.Logger.AppendEntry(e.Data, e.GpsData);
                UpdateButtonsStatus();
            }
        }
Beispiel #2
0
        private void ScannerScanComplete(object sender, ScanCompleteEventArgs e)
        {
            //_sc.ScanComplete -= _sc_ScanComplete;
            RefreshAll();

            //Log it!
            if (_scanner.Logger != null && _scanner.Logger.Enabled)
            {
                //Console.WriteLine(_sc.GetLastScan().Length);
                _scanner.Logger.AppendEntry(e.Data, e.GpsData);
                UpdateButtonsStatus();
            }

            //The invoke is always required
            try
            {
                Invoke(new DelVoidCall(() => apCountLabel.Text = string.Format("{0} / {1} AP(s)", _scanner.Cache.Count, _scanner.Cache.TotalCount)));
            }
            catch (InvalidOperationException)
            {
                // Exception thrown if UI isn't fully initialized yet. Ignore for now and let the next ScannerScanComplete() call
                //update the UI.
            }
        }