📄 frmfileinfo.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace FileSystem
{
/// <summary>
/// FrmFileInfo 的摘要说明。
/// </summary>
public class FrmFileInfo : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
public System.Windows.Forms.Label lbFileName;
public System.Windows.Forms.Label lbFileType;
private System.Windows.Forms.Label label3;
public System.Windows.Forms.Label lbTime;
private System.Windows.Forms.Label label5;
public System.Windows.Forms.CheckBox cbRead;
public System.Windows.Forms.CheckBox cbWrite;
public System.Windows.Forms.CheckBox cbExecute;
public System.Windows.Forms.Label lbLength;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.Button btnCancel;
public System.Windows.Forms.GroupBox gbInfo;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public FrmFileInfo()
{
//
// 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.lbFileName = new System.Windows.Forms.Label();
this.lbFileType = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.lbLength = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.lbTime = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.gbInfo = new System.Windows.Forms.GroupBox();
this.cbRead = new System.Windows.Forms.CheckBox();
this.cbWrite = new System.Windows.Forms.CheckBox();
this.cbExecute = new System.Windows.Forms.CheckBox();
this.btnOK = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.gbInfo.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(24, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(80, 23);
this.label1.TabIndex = 0;
this.label1.Text = "文件名称:";
//
// lbFileName
//
this.lbFileName.Location = new System.Drawing.Point(128, 24);
this.lbFileName.Name = "lbFileName";
this.lbFileName.Size = new System.Drawing.Size(232, 23);
this.lbFileName.TabIndex = 0;
//
// lbFileType
//
this.lbFileType.Location = new System.Drawing.Point(128, 64);
this.lbFileType.Name = "lbFileType";
this.lbFileType.Size = new System.Drawing.Size(232, 23);
this.lbFileType.TabIndex = 0;
//
// label3
//
this.label3.Location = new System.Drawing.Point(24, 64);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(80, 23);
this.label3.TabIndex = 0;
this.label3.Text = "类型:";
//
// lbLength
//
this.lbLength.Location = new System.Drawing.Point(128, 104);
this.lbLength.Name = "lbLength";
this.lbLength.Size = new System.Drawing.Size(232, 23);
this.lbLength.TabIndex = 0;
//
// label7
//
this.label7.Location = new System.Drawing.Point(24, 104);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(80, 23);
this.label7.TabIndex = 0;
this.label7.Text = "大小:";
//
// lbTime
//
this.lbTime.Location = new System.Drawing.Point(128, 144);
this.lbTime.Name = "lbTime";
this.lbTime.Size = new System.Drawing.Size(232, 23);
this.lbTime.TabIndex = 0;
//
// label5
//
this.label5.Location = new System.Drawing.Point(24, 144);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(80, 23);
this.label5.TabIndex = 0;
this.label5.Text = "创建时间:";
//
// gbInfo
//
this.gbInfo.Controls.Add(this.cbRead);
this.gbInfo.Controls.Add(this.cbWrite);
this.gbInfo.Controls.Add(this.cbExecute);
this.gbInfo.Location = new System.Drawing.Point(24, 200);
this.gbInfo.Name = "gbInfo";
this.gbInfo.Size = new System.Drawing.Size(184, 160);
this.gbInfo.TabIndex = 1;
this.gbInfo.TabStop = false;
this.gbInfo.Text = "属性";
//
// cbRead
//
this.cbRead.Location = new System.Drawing.Point(16, 24);
this.cbRead.Name = "cbRead";
this.cbRead.TabIndex = 0;
this.cbRead.Text = "可读";
//
// cbWrite
//
this.cbWrite.Location = new System.Drawing.Point(16, 72);
this.cbWrite.Name = "cbWrite";
this.cbWrite.TabIndex = 0;
this.cbWrite.Text = "可写";
//
// cbExecute
//
this.cbExecute.Location = new System.Drawing.Point(16, 120);
this.cbExecute.Name = "cbExecute";
this.cbExecute.TabIndex = 0;
this.cbExecute.Text = "可执行";
//
// btnOK
//
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOK.Location = new System.Drawing.Point(256, 208);
this.btnOK.Name = "btnOK";
this.btnOK.TabIndex = 2;
this.btnOK.Text = "确定";
//
// btnCancel
//
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(256, 264);
this.btnCancel.Name = "btnCancel";
this.btnCancel.TabIndex = 2;
this.btnCancel.Text = "取消";
//
// FrmFileInfo
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(370, 383);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.gbInfo);
this.Controls.Add(this.label1);
this.Controls.Add(this.lbFileName);
this.Controls.Add(this.lbFileType);
this.Controls.Add(this.label3);
this.Controls.Add(this.lbLength);
this.Controls.Add(this.label7);
this.Controls.Add(this.lbTime);
this.Controls.Add(this.label5);
this.Controls.Add(this.btnCancel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "FrmFileInfo";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "文件信息";
this.gbInfo.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -