コード例 #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);
            }
        }