⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.cs

📁 Professional C# 2nd Edition
💻 CS
📖 第 1 页 / 共 2 页
字号:
			// 
			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";
			// 
			// textBoxInput
			// 
			this.textBoxInput.Location = new System.Drawing.Point(16, 24);
			this.textBoxInput.Name = "textBoxInput";
			this.textBoxInput.Size = new System.Drawing.Size(408, 20);
			this.textBoxInput.TabIndex = 19;
			this.textBoxInput.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(16, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(280, 16);
			this.label1.TabIndex = 20;
			this.label1.Text = "Enter name of folder to be examined and click Display";
			// 
			// textBoxCreationTime
			// 
			this.textBoxCreationTime.Enabled = false;
			this.textBoxCreationTime.Location = new System.Drawing.Point(232, 72);
			this.textBoxCreationTime.Name = "textBoxCreationTime";
			this.textBoxCreationTime.Size = new System.Drawing.Size(184, 20);
			this.textBoxCreationTime.TabIndex = 15;
			this.textBoxCreationTime.Text = "";
			// 
			// listBoxFiles
			// 
			this.listBoxFiles.Location = new System.Drawing.Point(16, 120);
			this.listBoxFiles.Name = "listBoxFiles";
			this.listBoxFiles.Size = new System.Drawing.Size(240, 134);
			this.listBoxFiles.TabIndex = 13;
			this.listBoxFiles.SelectedIndexChanged += new System.EventHandler(this.OnListBoxFilesSelected);
			// 
			// listBoxFolders
			// 
			this.listBoxFolders.Location = new System.Drawing.Point(264, 120);
			this.listBoxFolders.Name = "listBoxFolders";
			this.listBoxFolders.Size = new System.Drawing.Size(240, 134);
			this.listBoxFolders.TabIndex = 17;
			this.listBoxFolders.SelectedIndexChanged += new System.EventHandler(this.OnListBoxFoldersSelected);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.groupBox5,
																					this.label6,
																					this.label5,
																					this.label3,
																					this.textBoxFileSize,
																					this.label7,
																					this.textBoxFileName,
																					this.label4,
																					this.textBoxFolder,
																					this.groupBox2});
			this.groupBox1.Location = new System.Drawing.Point(8, 48);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(496, 464);
			this.groupBox1.TabIndex = 27;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Contents of folder";
			// 
			// groupBox5
			// 
			this.groupBox5.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.label14,
																					this.textBoxNewPath,
																					this.buttonDelete,
																					this.buttonCopyTo,
																					this.buttonMoveTo});
			this.groupBox5.Location = new System.Drawing.Point(8, 368);
			this.groupBox5.Name = "groupBox5";
			this.groupBox5.Size = new System.Drawing.Size(480, 88);
			this.groupBox5.TabIndex = 13;
			this.groupBox5.TabStop = false;
			this.groupBox5.Text = "Move, Delete or Copy File";
			// 
			// label14
			// 
			this.label14.Location = new System.Drawing.Point(8, 56);
			this.label14.Name = "label14";
			this.label14.Size = new System.Drawing.Size(80, 16);
			this.label14.TabIndex = 4;
			this.label14.Text = "New Location";
			// 
			// textBoxNewPath
			// 
			this.textBoxNewPath.Location = new System.Drawing.Point(88, 56);
			this.textBoxNewPath.Name = "textBoxNewPath";
			this.textBoxNewPath.Size = new System.Drawing.Size(384, 20);
			this.textBoxNewPath.TabIndex = 5;
			this.textBoxNewPath.Text = "";
			// 
			// buttonDelete
			// 
			this.buttonDelete.Location = new System.Drawing.Point(168, 16);
			this.buttonDelete.Name = "buttonDelete";
			this.buttonDelete.TabIndex = 2;
			this.buttonDelete.Text = "Delete";
			this.buttonDelete.Click += new System.EventHandler(this.OnDeleteButtonClick);
			// 
			// buttonCopyTo
			// 
			this.buttonCopyTo.Location = new System.Drawing.Point(88, 16);
			this.buttonCopyTo.Name = "buttonCopyTo";
			this.buttonCopyTo.TabIndex = 1;
			this.buttonCopyTo.Text = "Copy To";
			this.buttonCopyTo.Click += new System.EventHandler(this.OnCopyButtonClick);
			// 
			// buttonMoveTo
			// 
			this.buttonMoveTo.Location = new System.Drawing.Point(8, 16);
			this.buttonMoveTo.Name = "buttonMoveTo";
			this.buttonMoveTo.TabIndex = 0;
			this.buttonMoveTo.Text = "Move To";
			this.buttonMoveTo.Click += new System.EventHandler(this.OnMoveButtonClick);
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(24, 312);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(120, 16);
			this.label6.TabIndex = 8;
			this.label6.Text = "Last modification time";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(240, 312);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(100, 16);
			this.label5.TabIndex = 7;
			this.label5.Text = "Last access time";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(240, 264);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(100, 16);
			this.label3.TabIndex = 5;
			this.label3.Text = "Creation time";
			// 
			// textBoxFileSize
			// 
			this.textBoxFileSize.Enabled = false;
			this.textBoxFileSize.Location = new System.Drawing.Point(24, 288);
			this.textBoxFileSize.Name = "textBoxFileSize";
			this.textBoxFileSize.Size = new System.Drawing.Size(184, 20);
			this.textBoxFileSize.TabIndex = 1;
			this.textBoxFileSize.Text = "";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(24, 264);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(100, 16);
			this.label7.TabIndex = 10;
			this.label7.Text = "File Size";
			// 
			// textBoxFileName
			// 
			this.textBoxFileName.Enabled = false;
			this.textBoxFileName.Location = new System.Drawing.Point(80, 240);
			this.textBoxFileName.Name = "textBoxFileName";
			this.textBoxFileName.Size = new System.Drawing.Size(400, 20);
			this.textBoxFileName.TabIndex = 1;
			this.textBoxFileName.Text = "";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(16, 240);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(64, 16);
			this.label4.TabIndex = 6;
			this.label4.Text = "File name";
			// 
			// textBoxFolder
			// 
			this.textBoxFolder.Enabled = false;
			this.textBoxFolder.Location = new System.Drawing.Point(8, 24);
			this.textBoxFolder.Name = "textBoxFolder";
			this.textBoxFolder.Size = new System.Drawing.Size(384, 20);
			this.textBoxFolder.TabIndex = 2;
			this.textBoxFolder.Text = "";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.textBoxLastAccessTime,
																					this.textBoxCreationTime,
																					this.textBoxLastWriteTime});
			this.groupBox2.Location = new System.Drawing.Point(8, 216);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(480, 144);
			this.groupBox2.TabIndex = 11;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "Details of Selected File";
			// 
			// textBoxLastAccessTime
			// 
			this.textBoxLastAccessTime.Enabled = false;
			this.textBoxLastAccessTime.Location = new System.Drawing.Point(232, 112);
			this.textBoxLastAccessTime.Name = "textBoxLastAccessTime";
			this.textBoxLastAccessTime.Size = new System.Drawing.Size(184, 20);
			this.textBoxLastAccessTime.TabIndex = 1;
			this.textBoxLastAccessTime.Text = "";
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.label9,
																					this.textBox1,
																					this.label10,
																					this.label11,
																					this.textBox2,
																					this.label12,
																					this.textBox3,
																					this.label13,
																					this.textBox4,
																					this.groupBox4});
			this.groupBox3.Location = new System.Drawing.Point(8, 48);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(496, 432);
			this.groupBox3.TabIndex = 28;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Contents of folder";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(24, 384);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(120, 16);
			this.label9.TabIndex = 8;
			this.label9.Text = "Last modification time";
			// 
			// textBox1
			// 
			this.textBox1.Enabled = false;
			this.textBox1.Location = new System.Drawing.Point(240, 400);
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(184, 20);
			this.textBox1.TabIndex = 1;
			this.textBox1.Text = "";
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(240, 376);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(100, 16);
			this.label10.TabIndex = 7;
			this.label10.Text = "Last access time";
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(240, 328);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(100, 16);
			this.label11.TabIndex = 5;
			this.label11.Text = "Creation time";
			// 
			// textBox2
			// 
			this.textBox2.Enabled = false;
			this.textBox2.Location = new System.Drawing.Point(24, 352);
			this.textBox2.Name = "textBox2";
			this.textBox2.Size = new System.Drawing.Size(184, 20);
			this.textBox2.TabIndex = 1;
			this.textBox2.Text = "";
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(24, 328);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(100, 16);
			this.label12.TabIndex = 10;
			this.label12.Text = "File Size";
			// 
			// textBox3
			// 
			this.textBox3.Enabled = false;
			this.textBox3.Location = new System.Drawing.Point(80, 304);
			this.textBox3.Name = "textBox3";
			this.textBox3.Size = new System.Drawing.Size(400, 20);
			this.textBox3.TabIndex = 1;
			this.textBox3.Text = "";
			// 
			// label13
			// 
			this.label13.Location = new System.Drawing.Point(16, 304);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(64, 16);
			this.label13.TabIndex = 6;
			this.label13.Text = "File name";
			// 
			// textBox4
			// 
			this.textBox4.Enabled = false;
			this.textBox4.Location = new System.Drawing.Point(8, 24);
			this.textBox4.Name = "textBox4";
			this.textBox4.Size = new System.Drawing.Size(384, 20);
			this.textBox4.TabIndex = 2;
			this.textBox4.Text = "";
			// 
			// groupBox4
			// 
			this.groupBox4.Location = new System.Drawing.Point(8, 280);
			this.groupBox4.Name = "groupBox4";
			this.groupBox4.Size = new System.Drawing.Size(480, 144);
			this.groupBox4.TabIndex = 11;
			this.groupBox4.TabStop = false;
			this.groupBox4.Text = "If file selected ...";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(400, 72);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(72, 24);
			this.button1.TabIndex = 23;
			this.button1.Text = "Up";
			// 
			// textBox5
			// 
			this.textBox5.Location = new System.Drawing.Point(16, 24);
			this.textBox5.Name = "textBox5";
			this.textBox5.Size = new System.Drawing.Size(408, 20);
			this.textBox5.TabIndex = 18;
			this.textBox5.Text = "";
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(520, 520);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.label8,
																		  this.buttonDisplay,
																		  this.buttonUp,
																		  this.label2,
																		  this.textBoxInput,
																		  this.label1,
																		  this.listBoxFiles,
																		  this.listBoxFolders,
																		  this.groupBox1,
																		  this.groupBox3,
																		  this.button1,
																		  this.textBox5});
			this.Name = "Form1";
			this.Text = "FilePropertiesAndMovement Sample";
			this.groupBox1.ResumeLayout(false);
			this.groupBox5.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -