亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? systeminfocontrol.cs

?? 本文我將向你展示一些技巧
?? CS
?? 第 1 頁 / 共 2 頁
字號:
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Management;
using System.Globalization;

namespace WindowsInfoControlLibrary
{
	/// <summary>
	/// This UserControl display system information.
	/// </summary>

	public class SysInfoControl : System.Windows.Forms.UserControl
	{
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.RadioButton radioMachine;
		private System.Windows.Forms.TextBox textIP;
		private System.Windows.Forms.Label labelUserID;
		private System.Windows.Forms.Label labelPassword;
		private System.Windows.Forms.TextBox textUserID;
		private System.Windows.Forms.TextBox textPassword;
		private System.Windows.Forms.TreeView treeSysInfo;
		private System.Windows.Forms.Label labelIP;
		private System.Windows.Forms.RadioButton radioRemoteMachine;
		private System.Windows.Forms.Button buttonRefresh;
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		private bool boolLoaded = false;

		//delegate status event
		public delegate void Status(string e);
		public event Status UpdateStatus;


		public SysInfoControl()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

		}

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Component Designer generated code
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.panel1 = new System.Windows.Forms.Panel();
			this.buttonRefresh = new System.Windows.Forms.Button();
			this.radioRemoteMachine = new System.Windows.Forms.RadioButton();
			this.textPassword = new System.Windows.Forms.TextBox();
			this.textUserID = new System.Windows.Forms.TextBox();
			this.labelPassword = new System.Windows.Forms.Label();
			this.labelUserID = new System.Windows.Forms.Label();
			this.labelIP = new System.Windows.Forms.Label();
			this.textIP = new System.Windows.Forms.TextBox();
			this.radioMachine = new System.Windows.Forms.RadioButton();
			this.treeSysInfo = new System.Windows.Forms.TreeView();
			this.panel1.SuspendLayout();
			this.SuspendLayout();
			// 
			// panel1
			// 
			this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
																				 this.buttonRefresh,
																				 this.radioRemoteMachine,
																				 this.textPassword,
																				 this.textUserID,
																				 this.labelPassword,
																				 this.labelUserID,
																				 this.labelIP,
																				 this.textIP,
																				 this.radioMachine});
			this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
			this.panel1.Location = new System.Drawing.Point(488, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(128, 432);
			this.panel1.TabIndex = 9;
			// 
			// buttonRefresh
			// 
			this.buttonRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.buttonRefresh.Location = new System.Drawing.Point(29, 15);
			this.buttonRefresh.Name = "buttonRefresh";
			this.buttonRefresh.Size = new System.Drawing.Size(75, 24);
			this.buttonRefresh.TabIndex = 1;
			this.buttonRefresh.Text = "&Refresh";
			this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
			// 
			// radioRemoteMachine
			// 
			this.radioRemoteMachine.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.radioRemoteMachine.Location = new System.Drawing.Point(13, 82);
			this.radioRemoteMachine.Name = "radioRemoteMachine";
			this.radioRemoteMachine.Size = new System.Drawing.Size(120, 24);
			this.radioRemoteMachine.TabIndex = 3;
			this.radioRemoteMachine.Text = "&Remote Machine";
			this.radioRemoteMachine.CheckedChanged += new System.EventHandler(this.radioMachine_CheckedChanged);
			// 
			// textPassword
			// 
			this.textPassword.Location = new System.Drawing.Point(12, 270);
			this.textPassword.Name = "textPassword";
			this.textPassword.PasswordChar = '*';
			this.textPassword.Size = new System.Drawing.Size(104, 20);
			this.textPassword.TabIndex = 9;
			this.textPassword.Text = "";
			this.textPassword.Visible = false;
			// 
			// textUserID
			// 
			this.textUserID.Location = new System.Drawing.Point(12, 209);
			this.textUserID.Name = "textUserID";
			this.textUserID.Size = new System.Drawing.Size(104, 20);
			this.textUserID.TabIndex = 7;
			this.textUserID.Text = "";
			this.textUserID.Visible = false;
			// 
			// labelPassword
			// 
			this.labelPassword.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.labelPassword.Location = new System.Drawing.Point(12, 245);
			this.labelPassword.Name = "labelPassword";
			this.labelPassword.Size = new System.Drawing.Size(100, 16);
			this.labelPassword.TabIndex = 8;
			this.labelPassword.Text = "&Password:";
			this.labelPassword.Visible = false;
			// 
			// labelUserID
			// 
			this.labelUserID.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.labelUserID.Location = new System.Drawing.Point(12, 185);
			this.labelUserID.Name = "labelUserID";
			this.labelUserID.Size = new System.Drawing.Size(100, 16);
			this.labelUserID.TabIndex = 6;
			this.labelUserID.Text = "&User ID:";
			this.labelUserID.Visible = false;
			// 
			// labelIP
			// 
			this.labelIP.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.labelIP.Location = new System.Drawing.Point(12, 123);
			this.labelIP.Name = "labelIP";
			this.labelIP.Size = new System.Drawing.Size(112, 16);
			this.labelIP.TabIndex = 4;
			this.labelIP.Text = "&IP or Machine Name:";
			this.labelIP.Visible = false;
			// 
			// textIP
			// 
			this.textIP.Location = new System.Drawing.Point(12, 148);
			this.textIP.Name = "textIP";
			this.textIP.Size = new System.Drawing.Size(104, 20);
			this.textIP.TabIndex = 5;
			this.textIP.Text = "";
			this.textIP.Visible = false;
			// 
			// radioMachine
			// 
			this.radioMachine.Checked = true;
			this.radioMachine.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.radioMachine.Location = new System.Drawing.Point(12, 54);
			this.radioMachine.Name = "radioMachine";
			this.radioMachine.Size = new System.Drawing.Size(120, 24);
			this.radioMachine.TabIndex = 2;
			this.radioMachine.TabStop = true;
			this.radioMachine.Text = "&Current Machine";
			this.radioMachine.CheckedChanged += new System.EventHandler(this.radioMachine_CheckedChanged);
			// 
			// treeSysInfo
			// 
			this.treeSysInfo.Dock = System.Windows.Forms.DockStyle.Fill;
			this.treeSysInfo.ImageIndex = -1;
			this.treeSysInfo.Name = "treeSysInfo";
			this.treeSysInfo.SelectedImageIndex = -1;
			this.treeSysInfo.Size = new System.Drawing.Size(488, 432);
			this.treeSysInfo.TabIndex = 0;
			// 
			// SysInfoControl
			// 
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.treeSysInfo,
																		  this.panel1});
			this.Name = "SysInfoControl";
			this.Size = new System.Drawing.Size(616, 432);
			this.panel1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// Overide Refresh function to requery system information
		/// </summary>
		public override void Refresh()
		{
			//set curser to hour glass
			this.Cursor = Cursors.WaitCursor;

			//clear text box
			treeSysInfo.Nodes.Clear();
			
			//get system info
			getSystemInfo();

			//set curser to hour glass
			this.Cursor = Cursors.Default;
		}

		/// <summary>
		/// Loaded property 
		/// </summary>
		/// <returns>boolLoaded</returns>
		public bool Loaded
		{
			get
			{
				//true if control already loaded else false.
				return boolLoaded;
			}
		}

		/// <summary>
		/// Private property
		/// </summary>
		/// <param name="booleanFlag"></param>
		private void setLoaded(bool booleanFlag)
		{
			boolLoaded = booleanFlag;
		}

		
		/// <summary>
		/// Get system information
		/// </summary>
		private void getSystemInfo()
		{
			ManagementObjectSearcher query;
			ManagementObjectCollection queryCollection;
			System.Management.ObjectQuery oq;
			TreeNodeCollection nodeCollection;
			string stringMachineName = "";

			//Connect to the remote computer
			ConnectionOptions co = new ConnectionOptions();

			if (radioMachine.Checked == true)
			{
				stringMachineName = "localhost";
			}
			else
			{
				stringMachineName = textIP.Text;
			}

			if (stringMachineName.Trim().Length == 0)
			{
				MessageBox.Show("Must enter machine IP address or name.");
				return;
			}

			//get user and password
			if (textUserID.Text.Trim().Length   > 0)
			{
				co.Username = textUserID.Text;
				co.Password = textPassword.Text;
			}

			//Point to machine
			System.Management.ManagementScope ms = new System.Management.ManagementScope("\\\\" + stringMachineName + "\\root\\cimv2", co);      

			//Status
			updateStatus("Getting System Information");

			//Query remote computer across the connection
			oq = new System.Management.ObjectQuery("SELECT * FROM Win32_OperatingSystem");
			query = new ManagementObjectSearcher(ms,oq);
  
			try
			{
				//clear TreeView
				treeSysInfo.Nodes.Clear();

				//create parent
				nodeCollection = createParentNode("Operating System");

				queryCollection = query.Get();
				foreach ( ManagementObject mo in queryCollection)
				{
					//create child node for operating system
					createChildNode(nodeCollection, "Operating System: " + mo["Caption"]);
					createChildNode(nodeCollection, "Version: " + mo["Version"]);
					createChildNode(nodeCollection, "Manufacturer : " + mo["Manufacturer"]);
					createChildNode(nodeCollection, "Computer Name : " +mo["csname"]);
					createChildNode(nodeCollection, "Windows Directory : " + mo["WindowsDirectory"]);
					createChildNode(nodeCollection, "Serial Number : " + mo["SerialNumber"]);
				}

				this.Update();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久久久久久99999| 成人av网址在线观看| 日韩一区二区精品在线观看| 亚洲成人av在线电影| 欧美猛男男办公室激情| 日韩高清在线电影| 久久亚区不卡日本| 国产91对白在线观看九色| 国产日韩欧美精品在线| aaa国产一区| 偷拍亚洲欧洲综合| 精品美女一区二区三区| 岛国一区二区三区| 亚洲大片在线观看| 久久婷婷成人综合色| caoporen国产精品视频| 亚洲福利视频导航| 精品国产一区二区国模嫣然| 波多野结衣亚洲一区| 亚洲成a天堂v人片| 久久久久久久精| 91免费观看国产| 美女国产一区二区三区| 欧美激情一区二区三区蜜桃视频| 色播五月激情综合网| 日本欧美久久久久免费播放网| 欧美精品一区二区在线播放| 99视频精品全部免费在线| 日日嗨av一区二区三区四区| 久久久久久久久岛国免费| 在线观看欧美黄色| 国产一区二区三区观看| 亚洲愉拍自拍另类高清精品| 精品国产a毛片| 欧美少妇xxx| 成人妖精视频yjsp地址| 日韩av电影免费观看高清完整版 | 日韩精品一二三区| 国产蜜臀av在线一区二区三区| 欧美四级电影在线观看| 国产大陆精品国产| 午夜激情综合网| 国产精品视频一区二区三区不卡| 欧美狂野另类xxxxoooo| av成人免费在线观看| 精品一区二区三区在线播放| 亚洲宅男天堂在线观看无病毒| 欧美日本一道本| 亚洲精品日韩一| 欧美日韩国产天堂| 97久久超碰国产精品电影| 麻豆91精品视频| 亚洲影院久久精品| 亚洲国产激情av| 日韩精品在线看片z| 日本精品一级二级| 成人动漫中文字幕| 精品一区二区三区的国产在线播放| 一区二区三区不卡视频在线观看 | 久久精品亚洲精品国产欧美| 欧美一区二区福利在线| 99re热这里只有精品免费视频 | 日产欧产美韩系列久久99| 亚洲欧美成aⅴ人在线观看| 久久久久久久久99精品| 欧美精品一区二区三区蜜桃视频| 欧美精品久久一区| 欧美日韩国产影片| 欧亚一区二区三区| 在线观看欧美精品| 在线一区二区三区四区| 91啪亚洲精品| 色悠悠亚洲一区二区| 成人av资源在线| 成人国产精品免费观看视频| 国产在线不卡一区| 国产精品香蕉一区二区三区| 国产毛片精品一区| 国产1区2区3区精品美女| 国产ts人妖一区二区| 国产一区二区福利视频| 国产精品一区二区不卡| 国产精品一区二区不卡| 国产91精品露脸国语对白| 丁香婷婷综合激情五月色| 成人夜色视频网站在线观看| 99国产精品99久久久久久| 在线精品国精品国产尤物884a| 色先锋久久av资源部| 欧美色老头old∨ideo| 欧美日韩一区三区| 欧美一区二区三区免费视频| 欧美va亚洲va| 国产欧美日韩三级| 亚洲精品中文在线观看| 亚洲h精品动漫在线观看| 蜜臀av亚洲一区中文字幕| 国产在线国偷精品产拍免费yy| 成人av在线看| 欧美亚洲综合在线| 日韩免费看的电影| 国产日韩视频一区二区三区| 亚洲欧美激情小说另类| 奇米影视一区二区三区小说| 国产在线观看一区二区| 91麻豆免费观看| 91精品国产综合久久婷婷香蕉| 欧美成人aa大片| 国产精品第一页第二页第三页| 亚洲一二三区视频在线观看| 日本91福利区| av网站免费线看精品| 欧美在线观看一二区| 欧美r级电影在线观看| 国产精品国产精品国产专区不蜜| 伊人开心综合网| 狠狠v欧美v日韩v亚洲ⅴ| 91一区二区三区在线播放| 在线成人av影院| 亚洲欧洲在线观看av| 日韩av电影免费观看高清完整版在线观看| 国产九色精品成人porny| 在线免费不卡视频| 国产欧美日本一区二区三区| 亚洲精品国产一区二区三区四区在线| 日本麻豆一区二区三区视频| 99视频在线精品| 国产精品久久毛片av大全日韩| 国产精品三级av| 成人在线综合网站| 欧美一区二区黄| 亚洲最大成人综合| 91亚洲资源网| 国产精品电影一区二区三区| 日韩精品一区二区三区swag | 国产麻豆精品95视频| 久久―日本道色综合久久| 亚洲色图制服诱惑| 理论片日本一区| 337p亚洲精品色噜噜噜| 一区二区三区电影在线播| av亚洲精华国产精华| 亚洲综合在线第一页| 一区二区三区在线观看网站| 成人欧美一区二区三区| 亚洲在线免费播放| caoporen国产精品视频| 国产午夜精品一区二区三区嫩草| 香蕉久久夜色精品国产使用方法| av电影在线不卡| 欧美激情中文不卡| 国产一区欧美二区| 精品欧美久久久| 免费精品视频在线| 欧美日韩视频在线观看一区二区三区 | 自拍偷拍国产亚洲| 成人午夜在线免费| 国产欧美一区二区三区在线老狼| 日本免费新一区视频| 欧美精品在线观看一区二区| 亚洲精品国产视频| 一本大道av一区二区在线播放| 欧美激情一区不卡| 成人国产视频在线观看| 国产精品日韩成人| 国产大陆亚洲精品国产| 欧美国产激情一区二区三区蜜月| 国产精品亚洲综合一区在线观看| 日韩免费在线观看| 精品一区二区综合| 欧美xfplay| 国产精品影音先锋| 欧美国产欧美综合| av综合在线播放| 亚洲色图清纯唯美| 欧美三级电影在线看| 亚洲成av人影院| 这里是久久伊人| 久久99精品国产| 久久美女艺术照精彩视频福利播放| 久久国产精品区| 久久久精品蜜桃| 大陆成人av片| 一区二区三区四区精品在线视频| 欧美午夜片在线看| 免费人成网站在线观看欧美高清| 日韩三级伦理片妻子的秘密按摩| 韩国v欧美v亚洲v日本v| 国产亚洲视频系列| 97久久超碰国产精品电影| 亚洲国产日韩一区二区| 91麻豆精品国产| 国精产品一区一区三区mba桃花| 中文乱码免费一区二区| 91在线精品一区二区三区| 亚洲第一会所有码转帖| 精品成人一区二区三区四区| 不卡高清视频专区| 日韩成人午夜精品| 中文无字幕一区二区三区 |