예제 #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
파일: Form1.cs 프로젝트: strfkr/CSharpTools
        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);
            }
        }