Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
            }
        }