示例#1
0
 private void buttonVer_Click(object sender, EventArgs e)
 {
     labelVer.Text = SysInfo.GetWindowsVersion();
 }
示例#2
0
 private void buttonPing_Click(object sender, EventArgs e)
 {
     SysInfo.PingUrl("google.com", reply => BeginInvoke((MethodInvoker) delegate { labelPing.Text = reply; }));
 }
示例#3
0
 private void buttonSkype_Click(object sender, EventArgs e)
 {
     labelSkype.Text = SysInfo.GetFirewallRule("Skype");
 }
示例#4
0
 private void buttonGetIpAddress_Click(object sender, EventArgs e)
 {
     labelIpAddress.Text = SysInfo.GetIpAddress();
 }