📄 filefolderexist.cs
字号:
namespace ConvertVideoFileFormats
{
public class FileFolderExist : System.Windows.Forms.Form
{
private string strInput;
private string strInformation;
private string strCreateQuestion;
private string strResult;
private string strCaption;
public string TextDialogInput
{
get
{
return strInput;
}
set
{
strInput = value;
}
}
public string ActionResult
{
get
{
return strResult;
}
set
{
strResult = value;
}
}
public string TextInformation
{
get
{
return strInformation;
}
set
{
strInformation = value;
}
}
public string TextQuestion
{
get
{
return strCreateQuestion;
}
set
{
strCreateQuestion = value;
}
}
public string TextCaption
{
get
{
return strCaption;
}
set
{
strCaption = value;
}
}
public FileFolderExist():base()
{
InitializeComponent();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (!((components == null)))
{
components.Dispose();
}
}
base.Dispose(disposing);
}
private System.ComponentModel.IContainer components;
internal System.Windows.Forms.Button Button_Yes;
internal System.Windows.Forms.Button Button_YesToAll;
internal System.Windows.Forms.Button Button_No;
internal System.Windows.Forms.Button Button_NoToAll;
internal System.Windows.Forms.Label Label_DoesNotExist;
internal System.Windows.Forms.Label Label_CreateQuestion;
internal System.Windows.Forms.Label Label_Folder;
[System.Diagnostics.DebuggerStepThrough()]
private void InitializeComponent()
{
this.Button_Yes = new System.Windows.Forms.Button();
this.Label_DoesNotExist = new System.Windows.Forms.Label();
this.Button_YesToAll = new System.Windows.Forms.Button();
this.Button_No = new System.Windows.Forms.Button();
this.Button_NoToAll = new System.Windows.Forms.Button();
this.Label_CreateQuestion = new System.Windows.Forms.Label();
this.Label_Folder = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// Button_Yes
//
this.Button_Yes.Location = new System.Drawing.Point(16, 128);
this.Button_Yes.Name = "Button_Yes";
this.Button_Yes.Size = new System.Drawing.Size(64, 24);
this.Button_Yes.TabIndex = 0;
this.Button_Yes.Text = "Yes";
this.Button_Yes.Click += new System.EventHandler(this.Button_Yes_Click);
//
// Label_DoesNotExist
//
this.Label_DoesNotExist.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Label_DoesNotExist.Location = new System.Drawing.Point(16, 16);
this.Label_DoesNotExist.Name = "Label_DoesNotExist";
this.Label_DoesNotExist.Size = new System.Drawing.Size(280, 24);
this.Label_DoesNotExist.TabIndex = 1;
this.Label_DoesNotExist.Text = "This output folder does not exist:";
//
// Button_YesToAll
//
this.Button_YesToAll.Location = new System.Drawing.Point(88, 128);
this.Button_YesToAll.Name = "Button_YesToAll";
this.Button_YesToAll.Size = new System.Drawing.Size(64, 24);
this.Button_YesToAll.TabIndex = 2;
this.Button_YesToAll.Text = "Yes to All";
this.Button_YesToAll.Click += new System.EventHandler(this.Button_YesToAll_Click);
//
// Button_No
//
this.Button_No.Location = new System.Drawing.Point(160, 128);
this.Button_No.Name = "Button_No";
this.Button_No.Size = new System.Drawing.Size(64, 24);
this.Button_No.TabIndex = 3;
this.Button_No.Text = "No";
this.Button_No.Click += new System.EventHandler(this.Button_No_Click);
//
// Button_NoToAll
//
this.Button_NoToAll.Location = new System.Drawing.Point(232, 128);
this.Button_NoToAll.Name = "Button_NoToAll";
this.Button_NoToAll.Size = new System.Drawing.Size(64, 24);
this.Button_NoToAll.TabIndex = 4;
this.Button_NoToAll.Text = "No to All";
this.Button_NoToAll.Click += new System.EventHandler(this.Button_NoToAll_Click);
//
// Label_CreateQuestion
//
this.Label_CreateQuestion.Location = new System.Drawing.Point(16, 96);
this.Label_CreateQuestion.Name = "Label_CreateQuestion";
this.Label_CreateQuestion.Size = new System.Drawing.Size(280, 24);
this.Label_CreateQuestion.TabIndex = 5;
this.Label_CreateQuestion.Text = "Do you want to create this folder?";
//
// Label_Folder
//
this.Label_Folder.Location = new System.Drawing.Point(32, 48);
this.Label_Folder.Name = "Label_Folder";
this.Label_Folder.Size = new System.Drawing.Size(264, 40);
this.Label_Folder.TabIndex = 6;
this.Label_Folder.Text = "Label_Folder";
//
// FileFolderExist
//
this.AcceptButton = this.Button_YesToAll;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(312, 165);
this.ControlBox = false;
this.Controls.Add(this.Label_Folder);
this.Controls.Add(this.Label_CreateQuestion);
this.Controls.Add(this.Button_NoToAll);
this.Controls.Add(this.Button_No);
this.Controls.Add(this.Button_YesToAll);
this.Controls.Add(this.Label_DoesNotExist);
this.Controls.Add(this.Button_Yes);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FileFolderExist";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Create Folder?";
this.Load += new System.EventHandler(this.FolderExist_Load );
this.ResumeLayout(false);
}
private void FolderExist_Load(object sender, System.EventArgs e)
{
Label_Folder.Text = strInput;
Label_DoesNotExist.Text = strInformation;
Label_CreateQuestion.Text = strCreateQuestion;
Text = strCaption;
}
private void Button_Yes_Click(object sender, System.EventArgs e)
{
strResult = "Yes";
Close();
}
private void Button_YesToAll_Click(object sender, System.EventArgs e)
{
strResult = "YesToAll";
Close();
}
private void Button_No_Click(object sender, System.EventArgs e)
{
strResult = "No";
Close();
}
private void Button_NoToAll_Click(object sender, System.EventArgs e)
{
strResult = "NoToAll";
Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -