fNetwroks (). Take (5))
{listItemWiFi=new ListViewItem
{= System.Text.Encoding.ASCII.GetString (network.dot11Ssid.SSID) .Trim ((char) 0)
};.SubItems.Add(network.wlanSignalQuality.ToString(CultureInfo.InvariantCulture));.SubItems.Add(.GetListOfBssNetwroks()
. First (= gt; .Text.Encoding.ASCII.GetString (x.dot11Ssid.SSID) .Trim ((char) 0) ==. Text.Encoding.ASCII.GetString (network. dot11Ssid.SSID) .Trim ((char) 0))
.GetMac());.SubItems.Add(network.dot11DefaultCipherAlgorithm.ToString());.SubItems.Add(.GetListOfBssNetwroks()
. First (= gt; .Text.Encoding.ASCII.GetString (x.dot11Ssid.SSID) .Trim ((char) 0) ==. Text.Encoding.ASCII.GetString (network. dot11Ssid.SSID) .Trim ((char) 0))
. GetChannel ()
. ToString ()) ;. Items.Add (listItemWiFi);
}. Series.Clear () ;. ChartAreas [0] .AxisY.Minimum=0; .ChartAreas [0] .AxisY.Maximum=100; .ChartAreas [0] .AxisX.IsStartedFromZero= true; .ChartAreas [0] .AxisX.Title= Channelsdfsdfdsf raquo ;;. ChartAreas [0] .AxisY.Title= Signal, dB raquo ;;. BackColor=Color.Transparent; .ChartAreas [0] .BorderWidth=460 ; .ChartAreas [0] .AxisY.MajorGrid.LineColor=Color.LightSlateGray; .ChartAreas [0] .BackColor=Color.Black;
//chart1.ChartAreas [0] .AxisX.Minimum=0; .ChartAreas [0] .AxisX.Maximum=16; (var network in cl.GetListOfBssNetwroks (). Take (5))
{seriesName=System.Text.Encoding.ASCII.GetString (network.dot11Ssid.SSID) .Trim ((char) 0) + a raquo ;;. Series.Add (seriesName) ;. Series [seriesName] .ChartType=SeriesChartType.Line;
//chart1.Series [seriesName] .Label=seriesName;
//chart1.Series [seriesName] .LabelForeColor=Color.White; .Series [seriesName] .BorderWidth=3; .Series [seriesName] .BorderDashStyle=ChartDashStyle.Solid; .Series [seriesName].Points.AddXY (network.GetChannel () - 2, 0) ;. Series [seriesName] .Points.AddXY (network.GetChannel () - 1, network.linkQuality) ;. Series [seriesName] .Points.AddXY (network.GetChannel () + 1, network.linkQuality) ;. Series [seriesName] .Points.AddXY (network.GetChannel () + 2, 0) ;. Series [seriesName] .Points [1] .Label=seriesName; .Series [seriesName] .Points [1] .LabelForeColor=Color.White; .Series [seriesName] .Color=new Color ();
}
/// lt; summary gt;
/// Метод для поновлення данних у форме
/// Обновлюється ListView та Chart
/// lt;/summary gt;
/// lt; param name= sender gt; lt;/param gt;
/// lt; param name= e gt; lt;/param gt; void timer1_Tick (object sender, EventArgs e)
{. Items.Clear (); cl=new Wifi (); (var network in cl.GetListOfNetwroks (). Take (5))
{listItemWiFi=new ListViewItem
{= System.Text.Encoding.ASCII.GetString (network.dot11Ssid.SSID) .Trim ((char) 0)
};.SubItems.Add(network.wlanSignalQuality.ToString(CultureInfo.InvariantCulture));.SubItems.Add(.GetListOfBssNetwroks()
. First (= gt; .Text.Encoding.ASCII.GetString (x.dot11Ssid.SSID) .Trim ((char) 0) ==. Text.Encoding.ASCII.GetString (network. dot11Ssid.SSID) .Trim ((char) 0))
.GetMac());.SubItems.Add(network.dot11DefaultAuthAlgorithm.ToString());.SubItems.Add(.GetListOfBssNetwroks()
. First (= gt; .Text.Encoding.ASCII.GetString (x.dot11Ssid.SSID) .Trim ((char) 0) .Text.Encoding.ASCII.GetString (network.dot11Ssid. SSID) .Trim ((char) 0))
. GetChannel ()
. ToString ()) ;. Items.Add (listItemWiFi);
}. Series.Clear () ;. ChartAreas [0] .AxisY.Minimum=0; .ChartAreas [0] .AxisY.Maximum=100; .ChartAreas [0] .AxisX.IsStartedFromZero= true; .ChartAreas [0] .AxisX.Title= Channel raquo ;;. ChartAreas [0] .AxisY.Title= Signal raquo ;;. BackColor=Color.Transparent; .ChartAreas [0] .BorderWidth=460 ;. ChartAreas [0] .AxisY.MajorGrid.LineColor=Color.LightSlateGray; .ChartAreas [0] .BackColor=Color.Black;
//chart1.ChartAreas [0] .AxisX.Minimum=0; .ChartAreas [0] .AxisX.Maximum=16; (var network in cl.GetListOfBssNetwroks (). Take (5))
{seriesName=System.Text.Encoding.ASCII.GetString (network.dot11Ssid.SSID) .Trim ((char) 0) + a raquo ;;. Series.Add (seriesName) ;. Series [seriesName] .ChartType=SeriesChartType.Line;
//chart1.Series [seriesName] .Label=seriesName;
//chart1.Series [seriesName] .LabelForeColor=Color.White; .Series [seriesName] .BorderWidth=3; .Series [seriesName] .BorderDashStyle=ChartDa...