📄 frm_rename.cs
字号:
//Filename : FRM_Rename.cs
//Part of : Phone Navigator C# example
//Description : Rename dialog of CSFileBrowser.NET example application
//Version : 3.2
//
//This example is only to be used with PC Connectivity API version 3.2.
//Compability ("as is") with future versions is not quaranteed.
//
//Copyright (c) 2007 Nokia Corporation.
//
//This material, including but not limited to documentation and any related
//computer programs, is protected by intellectual property rights of Nokia
//Corporation and/or its licensors.
//All rights are reserved. Reproducing, modifying, translating, or
//distributing any or all of this material requires the prior written consent
//of Nokia Corporation. Nokia Corporation retains the right to make changes
//to this material at any time without notice. A copyright license is hereby
//granted to download and print a copy of this material for personal use only.
//No other license to any other intellectual property rights is granted. The
//material is provided "as is" without warranty of any kind, either express or
//implied, including without limitation, any warranty of non-infringement,
//merchantability and fitness for a particular purpose. In no event shall
//Nokia Corporation be liable for any direct, indirect, special, incidental,
//or consequential loss or damages, including but not limited to, lost profits
//or revenue,loss of use, cost of substitute program, or loss of data or
//equipment arising out of the use or inability to use the material, even if
//Nokia Corporation has been advised of the likelihood of such damages occurring.
namespace CSFileBrowser.NET
{
public class FRM_Rename : System.Windows.Forms.Form
{
#region " Windows Form Designer generated code "
public FRM_Rename()
: base()
{
//This call is required by the Windows Form Designer.
InitializeComponent();
//Add any initialization after the InitializeComponent() call
}
//Form overrides dispose to clean up the component list.
protected override void Dispose(bool disposing)
{
if (disposing)
{
if ((components != null))
{
components.Dispose();
}
}
base.Dispose(disposing);
}
//Required by the Windows Form Designer
private System.ComponentModel.IContainer components;
//NOTE: The following procedure is required by the Windows Form Designer
//It can be modified using the Windows Form Designer.
//Do not modify it using the code editor.
internal System.Windows.Forms.Button BTN_OK;
internal System.Windows.Forms.Button BTN_Cancel;
internal System.Windows.Forms.TextBox TXB_NewName;
internal System.Windows.Forms.Label LBL_OldNameLabel;
internal System.Windows.Forms.Label LBL_OldName;
internal System.Windows.Forms.Label LBL_NewName;
[System.Diagnostics.DebuggerStepThrough()]
private void InitializeComponent()
{
this.BTN_OK = new System.Windows.Forms.Button();
this.BTN_Cancel = new System.Windows.Forms.Button();
this.TXB_NewName = new System.Windows.Forms.TextBox();
this.LBL_OldNameLabel = new System.Windows.Forms.Label();
this.LBL_OldName = new System.Windows.Forms.Label();
this.LBL_NewName = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// BTN_OK
//
this.BTN_OK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.BTN_OK.Location = new System.Drawing.Point(512, 8);
this.BTN_OK.Name = "BTN_OK";
this.BTN_OK.Size = new System.Drawing.Size(72, 32);
this.BTN_OK.TabIndex = 1;
this.BTN_OK.Text = "OK";
this.BTN_OK.Click += new System.EventHandler(this.BTN_OK_Click);
//
// BTN_Cancel
//
this.BTN_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.BTN_Cancel.Location = new System.Drawing.Point(512, 48);
this.BTN_Cancel.Name = "BTN_Cancel";
this.BTN_Cancel.Size = new System.Drawing.Size(72, 32);
this.BTN_Cancel.TabIndex = 2;
this.BTN_Cancel.Text = "Cancel";
this.BTN_Cancel.Click += new System.EventHandler(this.BTN_Cancel_Click);
//
// TXB_NewName
//
this.TXB_NewName.Location = new System.Drawing.Point(8, 96);
this.TXB_NewName.Name = "TXB_NewName";
this.TXB_NewName.Size = new System.Drawing.Size(576, 20);
this.TXB_NewName.TabIndex = 0;
//
// LBL_OldNameLabel
//
this.LBL_OldNameLabel.Location = new System.Drawing.Point(8, 8);
this.LBL_OldNameLabel.Name = "LBL_OldNameLabel";
this.LBL_OldNameLabel.Size = new System.Drawing.Size(128, 16);
this.LBL_OldNameLabel.TabIndex = 3;
this.LBL_OldNameLabel.Text = "Old name:";
//
// LBL_OldName
//
this.LBL_OldName.Location = new System.Drawing.Point(8, 32);
this.LBL_OldName.Name = "LBL_OldName";
this.LBL_OldName.Size = new System.Drawing.Size(496, 16);
this.LBL_OldName.TabIndex = 4;
//
// LBL_NewName
//
this.LBL_NewName.Location = new System.Drawing.Point(8, 72);
this.LBL_NewName.Name = "LBL_NewName";
this.LBL_NewName.Size = new System.Drawing.Size(128, 16);
this.LBL_NewName.TabIndex = 5;
this.LBL_NewName.Text = "New name:";
//
// FRM_Rename
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(592, 126);
this.Controls.Add(this.LBL_NewName);
this.Controls.Add(this.LBL_OldName);
this.Controls.Add(this.LBL_OldNameLabel);
this.Controls.Add(this.TXB_NewName);
this.Controls.Add(this.BTN_Cancel);
this.Controls.Add(this.BTN_OK);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FRM_Rename";
this.Text = "Rename";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private void BTN_OK_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void BTN_Cancel_Click(object sender, System.EventArgs e)
{
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -