📄 frmfolderinfo.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace FileSystem
{
/// <summary>
/// FrmFolderInfo 的摘要说明。
/// </summary>
public class FrmFolderInfo : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
public System.Windows.Forms.Label lbName;
private System.Windows.Forms.Label label3;
public System.Windows.Forms.Label lbTime;
private System.Windows.Forms.Label label2;
public System.Windows.Forms.Label lbStatus;
public System.Windows.Forms.Label lbSize;
private System.Windows.Forms.Label label7;
public System.Windows.Forms.Label lbFile;
public System.Windows.Forms.Label lbFolder;
private System.Windows.Forms.Button btnOK;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public FrmFolderInfo()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.lbName = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.lbTime = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lbStatus = new System.Windows.Forms.Label();
this.lbSize = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.lbFile = new System.Windows.Forms.Label();
this.lbFolder = new System.Windows.Forms.Label();
this.btnOK = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(24, 16);
this.label1.Name = "label1";
this.label1.TabIndex = 0;
this.label1.Text = "文件夹名称:";
//
// lbName
//
this.lbName.Location = new System.Drawing.Point(152, 16);
this.lbName.Name = "lbName";
this.lbName.Size = new System.Drawing.Size(184, 23);
this.lbName.TabIndex = 0;
//
// label3
//
this.label3.Location = new System.Drawing.Point(24, 56);
this.label3.Name = "label3";
this.label3.TabIndex = 0;
this.label3.Text = "创建时间:";
//
// lbTime
//
this.lbTime.Location = new System.Drawing.Point(152, 56);
this.lbTime.Name = "lbTime";
this.lbTime.Size = new System.Drawing.Size(184, 23);
this.lbTime.TabIndex = 0;
//
// label2
//
this.label2.Location = new System.Drawing.Point(24, 96);
this.label2.Name = "label2";
this.label2.TabIndex = 0;
this.label2.Text = "状态:";
//
// lbStatus
//
this.lbStatus.Location = new System.Drawing.Point(152, 96);
this.lbStatus.Name = "lbStatus";
this.lbStatus.Size = new System.Drawing.Size(184, 23);
this.lbStatus.TabIndex = 0;
//
// lbSize
//
this.lbSize.Location = new System.Drawing.Point(152, 136);
this.lbSize.Name = "lbSize";
this.lbSize.Size = new System.Drawing.Size(184, 23);
this.lbSize.TabIndex = 0;
//
// label7
//
this.label7.Location = new System.Drawing.Point(24, 136);
this.label7.Name = "label7";
this.label7.TabIndex = 0;
this.label7.Text = "大小:";
//
// lbFile
//
this.lbFile.Location = new System.Drawing.Point(24, 192);
this.lbFile.Name = "lbFile";
this.lbFile.Size = new System.Drawing.Size(312, 23);
this.lbFile.TabIndex = 0;
//
// lbFolder
//
this.lbFolder.Location = new System.Drawing.Point(24, 240);
this.lbFolder.Name = "lbFolder";
this.lbFolder.Size = new System.Drawing.Size(312, 23);
this.lbFolder.TabIndex = 0;
//
// btnOK
//
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOK.Location = new System.Drawing.Point(136, 296);
this.btnOK.Name = "btnOK";
this.btnOK.TabIndex = 1;
this.btnOK.Text = "确定";
//
// FrmFolderInfo
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(360, 343);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.label1);
this.Controls.Add(this.lbName);
this.Controls.Add(this.label3);
this.Controls.Add(this.lbTime);
this.Controls.Add(this.label2);
this.Controls.Add(this.lbStatus);
this.Controls.Add(this.lbSize);
this.Controls.Add(this.label7);
this.Controls.Add(this.lbFile);
this.Controls.Add(this.lbFolder);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmFolderInfo";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "文件夹属性";
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -