protected void onStationJoin(WLAN_HOSTED_NETWORK_PEER_STATE stationState) { var pStation = new WlanStation(stationState); this._Stations[pStation.MacAddress] = pStation; if (this.StationJoin != null) { this.StationJoin(this, EventArgs.Empty); } }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string str = ""; for (int i = 0; i < wlanManager.Stations.Count; i++) { WlanStation station = wlanManager.Stations.Values.ElementAt(i); if (str != "") { str += "\n" + i.ToString() + "\t" + station.MacAddress; } else { str = i.ToString() + "\t" + station.MacAddress; } } if (str != "") { MessageBox.Show(str); } }