Ejemplo n.º 1
0
        private void UpdateScanTab()
        {
            NSDictionary param = NSDictionary.FromObjectAndKey(NSNumber.FromBoolean(mergeScanResultsCheckbox.State == NSCellStateValue.On), new NSString("true"));
            NSError      error = null;

            ScanResults = CurrentInterface.ScanForNetworksWithParameters(param, out error);
            if (error == null)
            {
                Array.Sort(ScanResults, delegate(CWNetwork networkA, CWNetwork networkB)
                {
                    return(networkA.Ssid.CompareTo(networkB.Ssid));
                });
            }
            else
            {
                ScanResults = new CWNetwork[0];
                NSAlert.WithError(error).RunModal();
            }

            scanResultsTable.ReloadData();
        }