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

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

?? form1.cs

?? Professional C# 2nd Edition
?? CS
?? 第 1 頁 / 共 2 頁
字號(hào):
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;

namespace Wrox.ProCSharp.FilesAndRegistry
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private string currentFolderPath;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Button buttonDisplay;
		private System.Windows.Forms.Button buttonUp;
		private System.Windows.Forms.TextBox txtBoxLastWriteTime;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox txtBoxInput;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txtBoxCreationTime;
		private System.Windows.Forms.ListBox listBoxFiles;
		private System.Windows.Forms.ListBox listBoxFolders;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.TextBox txtBoxLastAccessTime;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox txtBoxFileSize;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.TextBox txtBoxFileName;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox txtBoxFolder;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.TextBox textBox2;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.TextBox textBox4;
		private System.Windows.Forms.GroupBox groupBox4;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.TextBox textBox5;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
		protected void ClearAllFields()
		{
			listBoxFolders.Items.Clear();
			listBoxFiles.Items.Clear();
			txtBoxFolder.Text = "";
			txtBoxFileName.Text = "";
			txtBoxCreationTime.Text = "";
			txtBoxLastAccessTime.Text = "";
			txtBoxLastWriteTime.Text = "";
			txtBoxFileSize.Text = "";
		}

		protected void DisplayFileInfo(string fileFullName)
		{
			FileInfo theFile = new FileInfo(fileFullName);
			if (!theFile.Exists)
				throw new FileNotFoundException("File not found: " + fileFullName);
			txtBoxFileName.Text = theFile.Name;
			txtBoxCreationTime.Text = theFile.CreationTime.ToLongTimeString();
			txtBoxLastAccessTime.Text = theFile.LastAccessTime.ToLongDateString();
			txtBoxLastWriteTime.Text = theFile.LastWriteTime.ToLongDateString();
			txtBoxFileSize.Text = theFile.Length.ToString() + " bytes";
		}

		protected void DisplayFolderList(string folderFullName)
		{
			DirectoryInfo theFolder = new DirectoryInfo(folderFullName);
			if (!theFolder.Exists)
				throw new DirectoryNotFoundException("Folder not found: " 
					+ folderFullName);
			ClearAllFields();
			txtBoxFolder.Text = theFolder.FullName;
			currentFolderPath = theFolder.FullName; 

			// list all subfolders in folder

			foreach(DirectoryInfo nextFolder in theFolder.GetDirectories())
				listBoxFolders.Items.Add(nextFolder.Name);

			// list all files in folder

			foreach(FileInfo nextFile in theFolder.GetFiles())
				listBoxFiles.Items.Add(nextFile.Name);
		}

		protected void OnDisplayButtonClick(object sender, EventArgs e)
		{
			try
			{
				string folderPath = txtBoxInput.Text;
				DirectoryInfo theFolder = new DirectoryInfo(folderPath);
				if (theFolder.Exists)
				{
					DisplayFolderList(theFolder.FullName);
					return;
				}
				FileInfo theFile = new FileInfo(folderPath);
				if (theFile.Exists)
				{
					DisplayFolderList(theFile.Directory.FullName);
					int index = listBoxFiles.Items.IndexOf(theFile.Name);
					listBoxFiles.SetSelected(index, true);
					return;
				}
				throw new FileNotFoundException("There is no file or folder with "
					+ "this name: " + txtBoxInput.Text);
			}
			catch(Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}

		protected void OnListBoxFilesSelected(object sender, EventArgs e)
		{
			try
			{
				string selectedString = listBoxFiles.SelectedItem.ToString();
				string fullFileName = Path.Combine(currentFolderPath, selectedString);
				DisplayFileInfo(fullFileName);
			}
			catch(Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}

		protected void OnListBoxFoldersSelected(object sender, EventArgs e)
		{
			try
			{
				string selectedString = listBoxFolders.SelectedItem.ToString();
				string fullPathName = Path.Combine(currentFolderPath, selectedString);
				DisplayFolderList(fullPathName);
			}
			catch(Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}

		protected void OnUpButtonClick(object sender, EventArgs e)
		{
			try
			{
				string folderPath = new FileInfo(currentFolderPath).DirectoryName;
				DisplayFolderList(folderPath);
			}
			catch(Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}


		#region Windows Form 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.label8 = new System.Windows.Forms.Label();
			this.buttonDisplay = new System.Windows.Forms.Button();
			this.buttonUp = new System.Windows.Forms.Button();
			this.txtBoxLastWriteTime = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.txtBoxInput = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.txtBoxCreationTime = new System.Windows.Forms.TextBox();
			this.listBoxFiles = new System.Windows.Forms.ListBox();
			this.listBoxFolders = new System.Windows.Forms.ListBox();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.label6 = new System.Windows.Forms.Label();
			this.txtBoxLastAccessTime = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.txtBoxFileSize = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.txtBoxFileName = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.txtBoxFolder = new System.Windows.Forms.TextBox();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.label9 = new System.Windows.Forms.Label();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.label10 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.label12 = new System.Windows.Forms.Label();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.label13 = new System.Windows.Forms.Label();
			this.textBox4 = new System.Windows.Forms.TextBox();
			this.groupBox4 = new System.Windows.Forms.GroupBox();
			this.button1 = new System.Windows.Forms.Button();
			this.textBox5 = new System.Windows.Forms.TextBox();
			this.groupBox1.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(256, 104);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(100, 16);
			this.label8.TabIndex = 14;
			this.label8.Text = "Folders";
			// 
			// buttonDisplay
			// 
			this.buttonDisplay.Location = new System.Drawing.Point(432, 24);
			this.buttonDisplay.Name = "buttonDisplay";
			this.buttonDisplay.TabIndex = 26;
			this.buttonDisplay.Text = "Display";
			this.buttonDisplay.Click += new System.EventHandler(this.OnDisplayButtonClick);
			// 
			// buttonUp
			// 
			this.buttonUp.Location = new System.Drawing.Point(408, 72);
			this.buttonUp.Name = "buttonUp";
			this.buttonUp.Size = new System.Drawing.Size(72, 24);
			this.buttonUp.TabIndex = 24;
			this.buttonUp.Text = "Up";
			this.buttonUp.Click += new System.EventHandler(this.OnUpButtonClick);
			// 
			// txtBoxLastWriteTime
			// 
			this.txtBoxLastWriteTime.Enabled = false;
			this.txtBoxLastWriteTime.Location = new System.Drawing.Point(32, 448);
			this.txtBoxLastWriteTime.Name = "txtBoxLastWriteTime";
			this.txtBoxLastWriteTime.Size = new System.Drawing.Size(184, 20);
			this.txtBoxLastWriteTime.TabIndex = 16;
			this.txtBoxLastWriteTime.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(16, 104);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(136, 16);
			this.label2.TabIndex = 22;
			this.label2.Text = "Files";
			// 
			// txtBoxInput
			// 
			this.txtBoxInput.Location = new System.Drawing.Point(16, 24);
			this.txtBoxInput.Name = "txtBoxInput";
			this.txtBoxInput.Size = new System.Drawing.Size(408, 20);
			this.txtBoxInput.TabIndex = 19;
			this.txtBoxInput.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(16, 8);
			this.label1.Name = "label1";

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成av人片一区二区| av电影天堂一区二区在线观看| 国产精品色在线| 欧美日韩一区二区在线观看视频 | 一区二区三区日本| 国产女人18水真多18精品一级做| 日韩一区二区三区高清免费看看| 欧美日韩三级一区| 91黄色在线观看| 色av综合在线| 欧美情侣在线播放| 日韩一区二区三区免费观看| 91丨porny丨首页| 在线精品观看国产| 欧美肥妇free| 久久久综合激的五月天| 国产欧美日韩中文久久| 国产精品网友自拍| 一区二区三区.www| 美女网站色91| 美美哒免费高清在线观看视频一区二区 | 99re热视频精品| 在线观看亚洲专区| 精品sm捆绑视频| 国产亚洲成av人在线观看导航| 久久精品人人做| 天天av天天翘天天综合网色鬼国产| 婷婷中文字幕综合| 国产一区二区精品久久91| 不卡电影免费在线播放一区| 欧美自拍偷拍一区| 国产欧美一区二区精品性| 亚洲国产综合人成综合网站| 国内精品免费**视频| 粉嫩欧美一区二区三区高清影视| 青青青爽久久午夜综合久久午夜| 国产成人一级电影| 精品噜噜噜噜久久久久久久久试看| 国产精品伦一区| 日本美女一区二区三区视频| 日韩欧美国产wwwww| 成人福利视频在线| 99久久精品国产观看| 久久这里只有精品首页| 丝袜a∨在线一区二区三区不卡| 日本一道高清亚洲日美韩| 国产精品一级片| 亚洲精品在线免费观看视频| 毛片不卡一区二区| 欧美一区二区国产| 首页国产丝袜综合| 欧美一区二区三区婷婷月色| 亚洲1区2区3区4区| 欧美在线一区二区三区| 亚洲品质自拍视频| 91视频在线观看| 亚洲女爱视频在线| 91国产丝袜在线播放| 玉足女爽爽91| 91精品欧美综合在线观看最新| 一区二区三区成人在线视频| 欧美色图12p| 琪琪久久久久日韩精品| 精品久久久久久久久久久久久久久| 亚洲午夜在线电影| 日韩免费高清视频| 成人av电影在线网| 一区二区三区免费观看| 欧美电影免费观看完整版| 亚洲激情综合网| 日韩欧美一级片| av成人动漫在线观看| 午夜精品久久一牛影视| 欧美大片拔萝卜| 色婷婷久久久久swag精品| 久久精品国产99国产精品| 久久久国产精品麻豆| 在线看一区二区| 成人免费视频一区| 免费在线观看成人| 一区二区三区在线视频观看58| 日韩欧美区一区二| 日本久久一区二区三区| 久久精品国产在热久久| 一区av在线播放| 亚洲视频免费在线观看| 久久一留热品黄| www国产亚洲精品久久麻豆| 欧美日本在线一区| 欧美伊人久久久久久久久影院 | 国产人久久人人人人爽| 欧美美女一区二区三区| 色狠狠一区二区| 91在线观看一区二区| 成人免费av资源| 成人一道本在线| 99re亚洲国产精品| 久久精品国产**网站演员| 免费的成人av| 久久99在线观看| 成人午夜免费av| 国产精品一色哟哟哟| 黄色日韩三级电影| 国模大尺度一区二区三区| 青青草91视频| 丁香激情综合国产| www.久久久久久久久| 亚洲a一区二区| 久久精品男人天堂av| 欧美系列在线观看| 欧美裸体一区二区三区| 91精品在线观看入口| 久久久久久亚洲综合| 国产精品无人区| 亚洲私人黄色宅男| 一区二区久久久久| 国产九色sp调教91| 欧美三区在线观看| 国产日韩精品一区二区三区 | 久久精品男人天堂av| 七七婷婷婷婷精品国产| 欧美亚洲综合网| 亚洲男同性恋视频| 97se亚洲国产综合自在线观| 国产欧美日韩亚州综合| 免费高清不卡av| 日韩美女在线视频| 亚洲h动漫在线| 欧美视频中文字幕| 亚洲图片有声小说| 欧美亚洲一区三区| 亚洲一卡二卡三卡四卡| 日本韩国欧美三级| 亚洲亚洲精品在线观看| 欧美日韩激情一区二区| 午夜a成v人精品| 欧美色国产精品| 日本伊人精品一区二区三区观看方式| 欧美丝袜丝nylons| 婷婷夜色潮精品综合在线| 91麻豆精品国产91| 精品中文字幕一区二区 | 五月婷婷久久丁香| 日韩精品一区二| 99久久er热在这里只有精品66| 国产精品卡一卡二| 欧美色图12p| 国产在线精品一区二区不卡了| 国产精品美女一区二区在线观看| 91亚洲国产成人精品一区二区三| 亚洲靠逼com| 久久亚洲捆绑美女| 欧美日韩高清影院| av成人动漫在线观看| 奇米777欧美一区二区| 中文字幕第一区第二区| 欧美一区二区三区成人| 91啦中文在线观看| 黄页视频在线91| 香蕉影视欧美成人| 亚洲欧美日韩在线播放| 欧美一级日韩免费不卡| 欧美色欧美亚洲另类二区| 国产精品中文字幕日韩精品| 日本中文在线一区| 亚洲一区二区视频在线观看| 国产目拍亚洲精品99久久精品| 欧美精品在线一区二区| 在线看不卡av| 色综合久久久久综合99| 成人黄色综合网站| 国产成人在线观看免费网站| 免费人成精品欧美精品| 中文字幕一区二区三区精华液 | 91亚洲男人天堂| 91丨九色丨黑人外教| 99国产精品国产精品毛片| 精品一区二区三区蜜桃| 久久99国内精品| 狠狠狠色丁香婷婷综合激情| 国产高清久久久| 日韩国产欧美视频| 中文字幕一区二区三区色视频| 欧美成人欧美edvon| 精品久久国产字幕高潮| 久久亚洲欧美国产精品乐播| 久久久噜噜噜久久人人看| 欧美激情综合五月色丁香小说| 中文字幕精品在线不卡| 亚洲靠逼com| 久久成人免费网| 不卡一区在线观看| 欧美性高清videossexo| 日韩欧美国产一区二区在线播放| 日韩精品一区二区三区视频播放| 久久久蜜桃精品| 亚洲自拍偷拍欧美| 国产精品一卡二卡| 欧美视频一区二区三区四区| 欧美精品一区二区三区四区|