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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? srvices.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;

namespace WindowsServicesControlLibrary
{
	/// <summary>
	/// Display srvices informatin.
	/// </summary>
	public class Srvices : System.Windows.Forms.UserControl
	{
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.ListView listViewServices;
		private System.Windows.Forms.Button buttonRefresh;
		private System.Windows.Forms.RadioButton radioRemoteMachine;
		private System.Windows.Forms.TextBox textPassword;
		private System.Windows.Forms.TextBox textUserID;
		private System.Windows.Forms.Label labelPassword;
		private System.Windows.Forms.Label labelUserID;
		private System.Windows.Forms.Label labelIP;
		private System.Windows.Forms.TextBox textIP;
		private System.Windows.Forms.RadioButton radioMachine;
		private System.Windows.Forms.ImageList imageList;
		private System.ComponentModel.IContainer components;

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

		private string stringServiceName = "";
		private string stringServiceAction = "";
		private ListViewItem listViewServiceItem;
		private bool boolLoaded = false;

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

			// Init list view
			InitListView();

			// Init boolLoaded flag
			boolLoaded = false;
		}

		/// <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.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Srvices));
			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.listViewServices = new System.Windows.Forms.ListView();
			this.imageList = new System.Windows.Forms.ImageList(this.components);
			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(632, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(128, 512);
			this.panel1.TabIndex = 0;
			// 
			// buttonRefresh
			// 
			this.buttonRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.buttonRefresh.Location = new System.Drawing.Point(29, 16);
			this.buttonRefresh.Name = "buttonRefresh";
			this.buttonRefresh.Size = new System.Drawing.Size(75, 24);
			this.buttonRefresh.TabIndex = 10;
			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(14, 80);
			this.radioRemoteMachine.Name = "radioRemoteMachine";
			this.radioRemoteMachine.Size = new System.Drawing.Size(120, 24);
			this.radioRemoteMachine.TabIndex = 12;
			this.radioRemoteMachine.Text = "&Remote Machine";
			this.radioRemoteMachine.CheckedChanged += new System.EventHandler(this.radioMachine_CheckedChanged);
			// 
			// textPassword
			// 
			this.textPassword.Location = new System.Drawing.Point(13, 272);
			this.textPassword.Name = "textPassword";
			this.textPassword.PasswordChar = '*';
			this.textPassword.Size = new System.Drawing.Size(104, 20);
			this.textPassword.TabIndex = 18;
			this.textPassword.Text = "";
			this.textPassword.Visible = false;
			// 
			// textUserID
			// 
			this.textUserID.Location = new System.Drawing.Point(13, 208);
			this.textUserID.Name = "textUserID";
			this.textUserID.Size = new System.Drawing.Size(104, 20);
			this.textUserID.TabIndex = 16;
			this.textUserID.Text = "";
			this.textUserID.Visible = false;
			// 
			// labelPassword
			// 
			this.labelPassword.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.labelPassword.Location = new System.Drawing.Point(13, 248);
			this.labelPassword.Name = "labelPassword";
			this.labelPassword.Size = new System.Drawing.Size(100, 16);
			this.labelPassword.TabIndex = 17;
			this.labelPassword.Text = "&Password:";
			this.labelPassword.Visible = false;
			// 
			// labelUserID
			// 
			this.labelUserID.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.labelUserID.Location = new System.Drawing.Point(13, 184);
			this.labelUserID.Name = "labelUserID";
			this.labelUserID.Size = new System.Drawing.Size(100, 16);
			this.labelUserID.TabIndex = 15;
			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(13, 120);
			this.labelIP.Name = "labelIP";
			this.labelIP.Size = new System.Drawing.Size(112, 16);
			this.labelIP.TabIndex = 13;
			this.labelIP.Text = "&IP or Machine Name:";
			this.labelIP.Visible = false;
			// 
			// textIP
			// 
			this.textIP.Location = new System.Drawing.Point(13, 144);
			this.textIP.Name = "textIP";
			this.textIP.Size = new System.Drawing.Size(104, 20);
			this.textIP.TabIndex = 14;
			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(13, 56);
			this.radioMachine.Name = "radioMachine";
			this.radioMachine.Size = new System.Drawing.Size(120, 24);
			this.radioMachine.TabIndex = 11;
			this.radioMachine.TabStop = true;
			this.radioMachine.Text = "&Current Machine";
			this.radioMachine.CheckedChanged += new System.EventHandler(this.radioMachine_CheckedChanged);
			// 
			// listViewServices
			// 
			this.listViewServices.Dock = System.Windows.Forms.DockStyle.Fill;
			this.listViewServices.LargeImageList = this.imageList;
			this.listViewServices.MultiSelect = false;
			this.listViewServices.Name = "listViewServices";
			this.listViewServices.Size = new System.Drawing.Size(632, 512);
			this.listViewServices.SmallImageList = this.imageList;
			this.listViewServices.Sorting = System.Windows.Forms.SortOrder.Ascending;
			this.listViewServices.TabIndex = 1;
			this.listViewServices.View = System.Windows.Forms.View.Details;
			this.listViewServices.MouseDown += new System.Windows.Forms.MouseEventHandler(this.listViewServices_MouseDown);
			// 
			// imageList
			// 
			this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
			this.imageList.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
			this.imageList.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// Srvices
			// 
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.listViewServices,
																		  this.panel1});
			this.Name = "Srvices";
			this.Size = new System.Drawing.Size(760, 512);
			this.panel1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion
	
		/// <summary>
		/// Get services and populate list view
		/// </summary>
		private void getServices()
		{
			ManagementObjectCollection queryCollection;
			string[] lvData =  new string[4];
  
			try
			{
				queryCollection = getServiceCollection("SELECT * FROM Win32_Service");
				foreach ( ManagementObject mo in queryCollection)
				{
					//create child node for operating system
					lvData[0] = mo["Name"].ToString();
					lvData[1] = mo["StartMode"].ToString();
					if (mo["Started"].Equals(true))
						lvData[2] = "Started";
					else
						lvData[2] = "Stop";
					lvData[3] = mo["StartName"].ToString();
					
					//create list item
					ListViewItem lvItem = new ListViewItem(lvData,0);
					listViewServices.Items.Add(lvItem);
				}
			}
			catch (Exception e)
			{
				MessageBox.Show("Error: " + e);
			}

			//Status
			updateStatus("Ready");
			this.Update();

		}

		/// <summary>
		/// Initialize list view
		/// </summary>
		private void InitListView()
		{
			//init ListView control
			listViewServices.Clear();		//clear control
			//create column header for ListView
			listViewServices.Columns.Add("Service",150,System.Windows.Forms.HorizontalAlignment.Left);
			listViewServices.Columns.Add("Start Mode",65, System.Windows.Forms.HorizontalAlignment.Left);
			listViewServices.Columns.Add("Status", 65, System.Windows.Forms.HorizontalAlignment.Left);
			listViewServices.Columns.Add("Account Name", 180, System.Windows.Forms.HorizontalAlignment.Left);

		}

		/// <summary>
		/// Update status
		/// </summary>
		/// <param name="stringStatus"></param>
		private void updateStatus(string stringStatus)
		{
			if (UpdateStatus != null)
				UpdateStatus(stringStatus );
		}

		/// <summary>
		/// radioMachine_CheckedChanged event allow user to access services on other machine
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void radioMachine_CheckedChanged(object sender, System.EventArgs e)
		{
			bool booleanFlag = true;
			RadioButton rbClicked = (RadioButton) sender;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米色777欧美一区二区| 极品少妇一区二区| 日韩精品一区二区三区中文不卡| 不卡的看片网站| 麻豆91精品视频| 国产不卡免费视频| 亚洲v精品v日韩v欧美v专区 | 精品日韩欧美在线| 99久久国产综合精品女不卡| 蜜臀精品一区二区三区在线观看 | 国产精品网站在线| 欧美一区国产二区| 在线免费观看不卡av| 成人晚上爱看视频| 久久91精品国产91久久小草| 亚洲成a人v欧美综合天堂| 中文字幕日韩精品一区| www激情久久| 日韩午夜激情免费电影| 欧美午夜不卡视频| 97国产一区二区| 成人免费视频一区二区| 懂色av一区二区夜夜嗨| 国产乱子伦视频一区二区三区 | 欧美亚洲丝袜传媒另类| 成人性视频网站| 精品一区二区三区在线观看国产 | 久久精品国产免费| 亚洲成人av在线电影| 亚洲精品免费在线| 最新欧美精品一区二区三区| 欧美国产日韩精品免费观看| 欧美精品一区二区三| 日韩欧美不卡在线观看视频| 56国语精品自产拍在线观看| 欧美人与禽zozo性伦| 欧美三级三级三级爽爽爽| 色婷婷激情综合| 日本韩国欧美三级| 在线观看www91| 欧美主播一区二区三区美女| 欧洲视频一区二区| 色88888久久久久久影院按摩| 99久久夜色精品国产网站| 99在线精品免费| 99re成人精品视频| 色婷婷久久久综合中文字幕| 在线视频一区二区三| 在线免费不卡视频| 欧美电影一区二区三区| 日韩一区二区三区视频在线| 日韩欧美123| 亚洲精品一区二区三区香蕉| 久久影院视频免费| 精品制服美女丁香| 久久99精品久久久| 国产99精品在线观看| 99视频有精品| 欧美一a一片一级一片| 欧美年轻男男videosbes| 欧美精品日日鲁夜夜添| 日韩欧美专区在线| 国产女人18毛片水真多成人如厕| 欧美激情一区二区在线| 亚洲欧洲日韩av| 一区二区激情小说| 日韩二区三区四区| 国产剧情一区二区三区| 色综合天天综合色综合av| 欧美日韩国产综合一区二区三区| 欧美一区二区精品| 欧美激情一区二区三区四区| 亚洲欧美日韩电影| 日韩国产精品久久| 国产iv一区二区三区| 在线观看三级视频欧美| 精品国产一区二区精华| 亚洲欧洲精品一区二区三区 | 不卡免费追剧大全电视剧网站| 91老师片黄在线观看| 67194成人在线观看| 国产精品视频在线看| 亚洲高清不卡在线观看| 国产精品小仙女| 欧美日韩午夜在线视频| 久久九九久久九九| 午夜视频一区二区| 国产福利一区在线| 欧美日韩一区二区三区四区五区| 欧美精品一区视频| 亚洲天堂福利av| 久久精品国产第一区二区三区| 成人黄色国产精品网站大全在线免费观看 | 亚洲国产视频一区二区| 国产一区二区久久| 欧美色视频一区| 国产精品美女视频| 免费人成在线不卡| 在线亚洲免费视频| 国产日韩欧美麻豆| 欧美a级理论片| 91色视频在线| 久久久美女毛片| 丝袜美腿一区二区三区| youjizz国产精品| 精品国产免费人成在线观看| 夜色激情一区二区| 成人午夜精品在线| 精品久久久久久久人人人人传媒 | 日韩影视精彩在线| 99久久99久久精品国产片果冻| 精品精品欲导航| 亚洲成人av一区二区| 91在线国产观看| 国产欧美日韩精品一区| 久久国产精品露脸对白| 欧美精品欧美精品系列| 亚洲精品免费看| av一二三不卡影片| 国产精品乱人伦一区二区| 国产剧情一区在线| 久久亚洲一区二区三区明星换脸| 日本va欧美va瓶| 在线不卡的av| 午夜影院久久久| 欧美三级电影网| 亚洲风情在线资源站| 色94色欧美sute亚洲线路一久| 日韩一区中文字幕| 成人a级免费电影| 国产精品美女久久久久久久| 国产高清亚洲一区| 久久久久久麻豆| 激情综合网av| wwww国产精品欧美| 国产精品一二三四五| 国产日本欧洲亚洲| 成人免费观看av| 国产精品国产三级国产三级人妇| 国产成人8x视频一区二区| 久久精品视频一区二区三区| 国产黄色精品网站| 亚洲国产精品二十页| 丁香激情综合国产| 国产精品国产精品国产专区不蜜 | 国产精品乱人伦中文| 成人黄色软件下载| 日韩一区中文字幕| 欧美中文字幕一二三区视频| 亚洲资源中文字幕| 欧美日韩国产一级二级| 污片在线观看一区二区| 日韩一级片网址| 韩国女主播一区| 国产精品素人一区二区| 91色|porny| 亚洲影视在线播放| 91精品国产福利在线观看| 久久99精品网久久| 国产精品福利影院| 欧美性生活大片视频| 日本成人在线电影网| 精品播放一区二区| 国产成人精品三级| 国产精品国产三级国产| 欧美三级日本三级少妇99| 蜜桃在线一区二区三区| 国产亚洲成av人在线观看导航| av电影在线观看不卡| 亚洲国产综合人成综合网站| 欧美大度的电影原声| 成人看片黄a免费看在线| 一区二区三区在线看| 日韩一区二区免费电影| 精品黑人一区二区三区久久 | 91免费版在线| 日韩二区三区四区| 国产精品视频一区二区三区不卡| 欧美自拍丝袜亚洲| 国产盗摄一区二区| 午夜久久久久久电影| 国产亚洲精品超碰| 在线不卡中文字幕| 成人午夜视频在线| 日本午夜一区二区| 一色桃子久久精品亚洲| 欧美一区二区免费观在线| 波多野结衣一区二区三区| 日韩黄色免费电影| 国产精品久久久久一区| 欧美一级在线视频| aaa亚洲精品| 精彩视频一区二区三区| 亚洲国产日韩a在线播放性色| 久久久影视传媒| 欧美疯狂做受xxxx富婆| 色综合色狠狠天天综合色| 国内精品国产成人| 日韩av不卡一区二区| 亚洲精品少妇30p|