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

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

?? form1.cs

?? Professional C# 2nd Edition
?? CS
?? 第 1 頁 / 共 2 頁
字號:
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";

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区三区在线观看| 久久久久久免费| 九一九一国产精品| 欧美丰满嫩嫩电影| 狠狠狠色丁香婷婷综合激情 | 午夜视频在线观看一区二区 | 国产农村妇女毛片精品久久麻豆| 99久久久免费精品国产一区二区| 亚洲午夜免费视频| 国产日韩精品一区二区三区| 欧美日韩www| 懂色av一区二区三区免费看| 亚洲国产精品欧美一二99| 欧美国产日韩精品免费观看| 欧美日韩国产综合视频在线观看| 国产一区二区在线观看视频| 亚洲va欧美va人人爽| 亚洲国产精品t66y| 制服丝袜成人动漫| 在线精品视频小说1| 国产成人在线色| 国产精品免费视频网站| 26uuu亚洲综合色欧美| 不卡av电影在线播放| 首页综合国产亚洲丝袜| 亚洲精品你懂的| 久久久久成人黄色影片| 911国产精品| 欧美日韩精品一区二区在线播放| 丁香五精品蜜臀久久久久99网站 | 精品久久久影院| 制服.丝袜.亚洲.另类.中文| 91蜜桃婷婷狠狠久久综合9色| 精品一区二区三区久久| 视频一区在线视频| 一区二区三区美女视频| 国产精品天干天干在线综合| 久久久精品欧美丰满| 欧美日韩国产精品自在自线| 欧美视频精品在线观看| 欧美日韩精品欧美日韩精品 | 青青草原综合久久大伊人精品| 亚洲免费观看视频| 中文字幕在线视频一区| 国产欧美精品国产国产专区 | 成人免费视频app| 国产毛片精品视频| 久久成人久久爱| 亚洲高清免费在线| 亚洲午夜久久久久中文字幕久| 亚洲精品国产a| 亚洲综合在线视频| 亚洲国产成人av网| 亚洲一区二区在线免费看| 亚洲一区二区精品3399| 亚洲美女视频在线观看| 亚洲人被黑人高潮完整版| 亚洲主播在线播放| 亚洲国产精品精华液网站| 中文字幕日韩精品一区| 亚洲欧美一区二区在线观看| 国产精品久久久久久妇女6080 | 在线成人免费观看| 欧美一区二区三区不卡| 在线电影欧美成精品| 91精品国产高清一区二区三区蜜臀| 欧美成人一区二区三区| 久久蜜桃一区二区| 精品sm捆绑视频| 综合色天天鬼久久鬼色| 亚洲一区二区高清| 久久精品国产77777蜜臀| 国产精品一卡二| 成人免费三级在线| 欧美日韩精品高清| 日韩精品在线网站| 国产亚洲自拍一区| 亚洲一区二区三区四区五区中文| 亚洲成人在线观看视频| 五月婷婷欧美视频| 久久成人免费网| 成人白浆超碰人人人人| 欧美久久一二区| 久久网站热最新地址| 国产精品国产三级国产aⅴ入口| 亚洲激情校园春色| 亚洲不卡一区二区三区| 国产福利一区二区| 91免费看视频| 欧美一区二区三区四区视频| 国产精品乱人伦| 性感美女久久精品| 久色婷婷小香蕉久久| 91麻豆福利精品推荐| 日韩一区二区影院| 亚洲欧美日韩电影| 激情成人午夜视频| 色吧成人激情小说| 久久久天堂av| 亚洲国产综合人成综合网站| 国内外成人在线| 国产成人8x视频一区二区| 色婷婷综合五月| 91精品国产欧美日韩| 中文字幕免费不卡| 奇米影视一区二区三区| 国产一区二区福利| 欧美在线色视频| 国产欧美日韩视频一区二区 | 久久精品久久久精品美女| 高清免费成人av| 欧美日韩电影在线播放| 亚洲欧洲另类国产综合| 日韩电影免费在线观看网站| 成人中文字幕合集| 精品国产91亚洲一区二区三区婷婷 | 久久99久久99精品免视看婷婷 | 亚洲欧美综合另类在线卡通| 国产精品一二三四| 欧美视频在线观看一区| 国产亚洲综合在线| 日韩一区欧美一区| 国产一区二区三区四| 欧美日本国产一区| 亚洲激情自拍视频| 91极品视觉盛宴| 国产精品丝袜91| 日本高清成人免费播放| 国产精品盗摄一区二区三区| 精品一区二区三区的国产在线播放 | 精品国产乱码久久| 美女视频一区在线观看| 精品视频1区2区| 亚洲色图欧美偷拍| 色综合咪咪久久| 国产精品久久看| 琪琪久久久久日韩精品| 成人午夜电影网站| 久久综合久久鬼色| 青青草国产成人av片免费| 666欧美在线视频| 亚洲一区二区视频在线观看| 99综合电影在线视频| 亚洲视频在线一区观看| 成人av在线电影| 久久久国产综合精品女国产盗摄| 国产激情91久久精品导航| 欧美第一区第二区| 国产精品一级片| 国产精品污www在线观看| 国产精品888| 国产精品毛片无遮挡高清| 国产91精品一区二区麻豆亚洲| 欧美精品v国产精品v日韩精品 | 欧洲人成人精品| 亚洲一线二线三线视频| 99精品一区二区| 久久久青草青青国产亚洲免观| 日韩国产欧美在线播放| 欧美片在线播放| 日本视频免费一区| 欧美唯美清纯偷拍| 午夜精品久久久久久不卡8050| 欧美日韩三级一区| 日韩二区三区四区| 国产视频一区不卡| 成人av动漫网站| 亚洲精品视频在线观看网站| 91小视频在线免费看| 亚洲一级在线观看| 欧美一区二区三区视频在线观看| 看片的网站亚洲| 国产丝袜在线精品| 成人av影院在线| 亚洲黄色片在线观看| 欧美三级在线视频| 国产一区在线不卡| 成人免费在线视频观看| 欧美日韩国产综合久久| 麻豆国产精品视频| 欧美激情一区二区| 欧美久久一二三四区| 国产一区三区三区| 亚洲综合在线电影| 日韩精品一区二区三区三区免费| 欧美96一区二区免费视频| 中文字幕一区二区在线观看| 欧美性欧美巨大黑白大战| 国产乱码精品一品二品| 亚洲激情图片qvod| 欧美日韩精品专区| 97精品视频在线观看自产线路二| 偷拍自拍另类欧美| 亚洲欧美偷拍卡通变态| 欧美一区二区人人喊爽| 国产麻豆成人传媒免费观看| 一区2区3区在线看| 国产亚洲综合在线| 欧美成人a在线| 91老师片黄在线观看|