static void Main(string[] args) { WirelessHelper wclient = new WirelessHelper(); Dictionary<string, List<SSIDEntry>> wirelessList = wclient.GetWirelessStrengths(); Console.Write("["); foreach (List<SSIDEntry> ssids in wirelessList.Values) { foreach (SSIDEntry ssid in ssids) { Console.Write(ssid.ToString()); } } Console.Write("]"); }
private void InitializeWireless() { try { wireless = new WirelessHelper(); } catch (Exception) { //Probably not on a computer with a wireless card. } }