📄 frmeditprofile.cs
字号:
#region Using directives
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
#endregion
namespace UI
{
/// <summary>
/// Summary description for frmEditProfile.
/// </summary>
public class frmEditProfile : System.Windows.Forms.Form
{
private MenuItem miConfirm;
private MenuItem menuItem2;
/// <summary>
/// Main menu for the form.
/// </summary>
private System.Windows.Forms.MainMenu mainMenu;
Profile.ProfileList _profileList;
private MenuItem miEdit;
private MenuItem miDelete;
private ComboBox comboBoxProfile;
private Label label1;
private MenuItem miCancel;
private TextBox txtLogin;
private TextBox txtPassword;
private Label label2;
private Label label3;
private Label label4;
private TextBox txtAddr1;
private Label label5;
private TextBox txtAddr2;
private Label label6;
private Label label7;
private TextBox txtAddr3;
private Label label8;
private TextBox txtAddr4;
private Label label9;
private TextBox txtAddr5;
private TextBox txtAddr6;
private MainMenu mainMenuEdit;
private MenuItem miEditSave;
private MenuItem miEditCancel;
public frmEditProfile(Profile.ProfileList lstProfile)
{
_profileList = lstProfile;
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.mainMenu = new System.Windows.Forms.MainMenu();
this.miConfirm = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.miEdit = new System.Windows.Forms.MenuItem();
this.miDelete = new System.Windows.Forms.MenuItem();
this.miCancel = new System.Windows.Forms.MenuItem();
this.comboBoxProfile = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.txtLogin = new System.Windows.Forms.TextBox();
this.txtPassword = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.txtAddr1 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.txtAddr2 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.txtAddr3 = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.txtAddr4 = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.txtAddr5 = new System.Windows.Forms.TextBox();
this.txtAddr6 = new System.Windows.Forms.TextBox();
this.mainMenuEdit = new System.Windows.Forms.MainMenu();
this.miEditSave = new System.Windows.Forms.MenuItem();
this.miEditCancel = new System.Windows.Forms.MenuItem();
//
// mainMenu
//
this.mainMenu.MenuItems.Add(this.miConfirm);
this.mainMenu.MenuItems.Add(this.menuItem2);
//
// miConfirm
//
this.miConfirm.Text = "Confirm";
this.miConfirm.Click += new System.EventHandler(this.miConfirm_Click);
//
// menuItem2
//
this.menuItem2.MenuItems.Add(this.miEdit);
this.menuItem2.MenuItems.Add(this.miDelete);
this.menuItem2.MenuItems.Add(this.miCancel);
this.menuItem2.Text = "Meun";
//
// miEdit
//
this.miEdit.Text = "Edit";
this.miEdit.Click += new System.EventHandler(this.miEdit_Click);
//
// miDelete
//
this.miDelete.Text = "Delete";
this.miDelete.Click += new System.EventHandler(this.miDelete_Click);
//
// miCancel
//
this.miCancel.Text = "Cancel";
//
// comboBoxProfile
//
this.comboBoxProfile.BackColor = System.Drawing.SystemColors.Menu;
this.comboBoxProfile.Location = new System.Drawing.Point(11, 34);
this.comboBoxProfile.Size = new System.Drawing.Size(207, 33);
this.comboBoxProfile.SelectedIndexChanged += new System.EventHandler(this.comboBoxProfile_SelectedIndexChanged);
//
// label1
//
this.label1.Location = new System.Drawing.Point(11, 9);
this.label1.Size = new System.Drawing.Size(152, 22);
this.label1.Text = "Select a Profile:";
//
// txtLogin
//
this.txtLogin.Location = new System.Drawing.Point(11, 106);
this.txtLogin.Size = new System.Drawing.Size(152, 33);
//
// txtPassword
//
this.txtPassword.Location = new System.Drawing.Point(11, 167);
this.txtPassword.Size = new System.Drawing.Size(152, 33);
//
// label2
//
this.label2.Location = new System.Drawing.Point(11, 203);
this.label2.Size = new System.Drawing.Size(152, 22);
this.label2.Text = "Address:";
//
// label3
//
this.label3.Location = new System.Drawing.Point(11, 81);
this.label3.Size = new System.Drawing.Size(152, 25);
this.label3.Text = "Login:";
//
// label4
//
this.label4.Location = new System.Drawing.Point(11, 142);
this.label4.Size = new System.Drawing.Size(152, 22);
this.label4.Text = "Password:";
//
// txtAddr1
//
this.txtAddr1.Font = new System.Drawing.Font("Nina", 9F, System.Drawing.FontStyle.Regular);
this.txtAddr1.Location = new System.Drawing.Point(11, 228);
this.txtAddr1.MaxLength = 2;
this.txtAddr1.Size = new System.Drawing.Size(21, 28);
this.txtAddr1.Text = "00";
//
// label5
//
this.label5.Location = new System.Drawing.Point(38, 228);
this.label5.Size = new System.Drawing.Size(3, 30);
this.label5.Text = ":";
this.label5.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// txtAddr2
//
this.txtAddr2.Font = new System.Drawing.Font("Nina", 9F, System.Drawing.FontStyle.Regular);
this.txtAddr2.Location = new System.Drawing.Point(47, 228);
this.txtAddr2.MaxLength = 2;
this.txtAddr2.Size = new System.Drawing.Size(21, 28);
this.txtAddr2.Text = "00";
//
// label6
//
this.label6.Location = new System.Drawing.Point(74, 228);
this.label6.Size = new System.Drawing.Size(3, 30);
this.label6.Text = ":";
this.label6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// label7
//
this.label7.Location = new System.Drawing.Point(110, 228);
this.label7.Size = new System.Drawing.Size(3, 30);
this.label7.Text = ":";
this.label7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -