📄 frmuser.cs
字号:
//
this.txtConfirmPwd.BackColor = System.Drawing.SystemColors.Info;
this.txtConfirmPwd.Location = new System.Drawing.Point(595, 146);
this.txtConfirmPwd.Name = "txtConfirmPwd";
this.txtConfirmPwd.PasswordChar = '*';
this.txtConfirmPwd.Size = new System.Drawing.Size(163, 21);
this.txtConfirmPwd.TabIndex = 5;
this.txtConfirmPwd.Text = "";
this.txtConfirmPwd.Leave += new System.EventHandler(this.txtConfirmPwd_Leave);
//
// lblCreateUser
//
this.lblCreateUser.AutoSize = true;
this.lblCreateUser.BackColor = System.Drawing.Color.Transparent;
this.lblCreateUser.Font = new System.Drawing.Font("Century Gothic", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblCreateUser.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
this.lblCreateUser.Location = new System.Drawing.Point(173, 9);
this.lblCreateUser.Name = "lblCreateUser";
this.lblCreateUser.Size = new System.Drawing.Size(191, 39);
this.lblCreateUser.TabIndex = 8;
this.lblCreateUser.Text = "创 建 用 户";
//
// btnSave
//
this.btnSave.BackColor = System.Drawing.Color.Transparent;
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnSave.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.btnSave.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.btnSave.Location = new System.Drawing.Point(192, 370);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(96, 26);
this.btnSave.TabIndex = 10;
this.btnSave.Text = "保存(&S)";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// btnCancel
//
this.btnCancel.BackColor = System.Drawing.Color.Transparent;
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnCancel.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.btnCancel.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.btnCancel.Location = new System.Drawing.Point(642, 370);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(96, 26);
this.btnCancel.TabIndex = 12;
this.btnCancel.Text = "取消(&C)";
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// grpPersonalDetails
//
this.grpPersonalDetails.BackColor = System.Drawing.Color.Transparent;
this.grpPersonalDetails.Controls.Add(this.grpStatus);
this.grpPersonalDetails.Controls.Add(this.grpGender);
this.grpPersonalDetails.Controls.Add(this.txtEmail);
this.grpPersonalDetails.Controls.Add(this.lblEmail);
this.grpPersonalDetails.Controls.Add(this.txtPhone);
this.grpPersonalDetails.Controls.Add(this.lblPhone);
this.grpPersonalDetails.Controls.Add(this.txtAddress);
this.grpPersonalDetails.Controls.Add(this.lblAddress);
this.grpPersonalDetails.Controls.Add(this.txtName);
this.grpPersonalDetails.Controls.Add(this.lblName);
this.grpPersonalDetails.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.grpPersonalDetails.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.grpPersonalDetails.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.grpPersonalDetails.Location = new System.Drawing.Point(173, 181);
this.grpPersonalDetails.Name = "grpPersonalDetails";
this.grpPersonalDetails.Size = new System.Drawing.Size(595, 172);
this.grpPersonalDetails.TabIndex = 16;
this.grpPersonalDetails.TabStop = false;
this.grpPersonalDetails.Text = "个人详细信息";
//
// grpStatus
//
this.grpStatus.Controls.Add(this.radInactive);
this.grpStatus.Controls.Add(this.radActive);
this.grpStatus.Location = new System.Drawing.Point(288, 95);
this.grpStatus.Name = "grpStatus";
this.grpStatus.Size = new System.Drawing.Size(298, 60);
this.grpStatus.TabIndex = 32;
this.grpStatus.TabStop = false;
this.grpStatus.Text = "状态";
//
// radInactive
//
this.radInactive.Location = new System.Drawing.Point(182, 26);
this.radInactive.Name = "radInactive";
this.radInactive.Size = new System.Drawing.Size(87, 17);
this.radInactive.TabIndex = 1;
this.radInactive.Text = "非活动";
this.radInactive.CheckedChanged += new System.EventHandler(this.radInactive_CheckedChanged);
//
// radActive
//
this.radActive.Location = new System.Drawing.Point(19, 26);
this.radActive.Name = "radActive";
this.radActive.Size = new System.Drawing.Size(77, 17);
this.radActive.TabIndex = 0;
this.radActive.Text = "活动";
this.radActive.CheckedChanged += new System.EventHandler(this.radActive_CheckedChanged);
//
// grpGender
//
this.grpGender.Controls.Add(this.radFemale);
this.grpGender.Controls.Add(this.radMale);
this.grpGender.Location = new System.Drawing.Point(10, 95);
this.grpGender.Name = "grpGender";
this.grpGender.Size = new System.Drawing.Size(249, 60);
this.grpGender.TabIndex = 30;
this.grpGender.TabStop = false;
this.grpGender.Text = "性别";
//
// radFemale
//
this.radFemale.Location = new System.Drawing.Point(154, 26);
this.radFemale.Name = "radFemale";
this.radFemale.Size = new System.Drawing.Size(86, 17);
this.radFemale.TabIndex = 1;
this.radFemale.Text = "女";
this.radFemale.CheckedChanged += new System.EventHandler(this.radFemale_CheckedChanged);
//
// radMale
//
this.radMale.Checked = true;
this.radMale.Location = new System.Drawing.Point(19, 26);
this.radMale.Name = "radMale";
this.radMale.Size = new System.Drawing.Size(67, 17);
this.radMale.TabIndex = 0;
this.radMale.TabStop = true;
this.radMale.Text = "男";
this.radMale.CheckedChanged += new System.EventHandler(this.radMale_CheckedChanged);
//
// txtEmail
//
this.txtEmail.BackColor = System.Drawing.SystemColors.Info;
this.txtEmail.Location = new System.Drawing.Point(422, 60);
this.txtEmail.Name = "txtEmail";
this.txtEmail.Size = new System.Drawing.Size(164, 22);
this.txtEmail.TabIndex = 29;
this.txtEmail.Text = "";
this.txtEmail.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtEmail_KeyPress);
this.txtEmail.Leave += new System.EventHandler(this.txtEmail_Leave);
//
// lblEmail
//
this.lblEmail.AutoSize = true;
this.lblEmail.BackColor = System.Drawing.Color.Transparent;
this.lblEmail.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblEmail.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblEmail.Location = new System.Drawing.Point(278, 62);
this.lblEmail.Name = "lblEmail";
this.lblEmail.Size = new System.Drawing.Size(59, 18);
this.lblEmail.TabIndex = 28;
this.lblEmail.Text = "电子邮件";
//
// txtPhone
//
this.txtPhone.BackColor = System.Drawing.SystemColors.Info;
this.txtPhone.Location = new System.Drawing.Point(96, 60);
this.txtPhone.Name = "txtPhone";
this.txtPhone.Size = new System.Drawing.Size(163, 22);
this.txtPhone.TabIndex = 27;
this.txtPhone.Text = "";
//
// lblPhone
//
this.lblPhone.AutoSize = true;
this.lblPhone.BackColor = System.Drawing.Color.Transparent;
this.lblPhone.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblPhone.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblPhone.Location = new System.Drawing.Point(10, 62);
this.lblPhone.Name = "lblPhone";
this.lblPhone.Size = new System.Drawing.Size(32, 18);
this.lblPhone.TabIndex = 26;
this.lblPhone.Text = "电话";
//
// txtAddress
//
this.txtAddress.BackColor = System.Drawing.SystemColors.Info;
this.txtAddress.Location = new System.Drawing.Point(422, 26);
this.txtAddress.Multiline = true;
this.txtAddress.Name = "txtAddress";
this.txtAddress.Size = new System.Drawing.Size(164, 24);
this.txtAddress.TabIndex = 25;
this.txtAddress.Text = "";
//
// lblAddress
//
this.lblAddress.AutoSize = true;
this.lblAddress.BackColor = System.Drawing.Color.Transparent;
this.lblAddress.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblAddress.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblAddress.Location = new System.Drawing.Point(278, 26);
this.lblAddress.Name = "lblAddress";
this.lblAddress.Size = new System.Drawing.Size(32, 18);
this.lblAddress.TabIndex = 24;
this.lblAddress.Text = "地址";
//
// txtName
//
this.txtName.BackColor = System.Drawing.SystemColors.Info;
this.txtName.Location = new System.Drawing.Point(96, 26);
this.txtName.Name = "txtName";
this.txtName.Size = new System.Drawing.Size(163, 22);
this.txtName.TabIndex = 23;
this.txtName.Text = "";
this.txtName.Leave += new System.EventHandler(this.txtName_Leave);
//
// lblName
//
this.lblName.AutoSize = true;
this.lblName.BackColor = System.Drawing.Color.Transparent;
this.lblName.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblName.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblName.Location = new System.Drawing.Point(10, 26);
this.lblName.Name = "lblName";
this.lblName.Size = new System.Drawing.Size(32, 18);
this.lblName.TabIndex = 22;
this.lblName.Text = "姓名";
//
// cboUserType
//
this.cboUserType.BackColor = System.Drawing.SystemColors.Info;
this.cboUserType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboUserType.Items.AddRange(new object[] {
"Student",
"Teacher"});
this.cboUserType.Location = new System.Drawing.Point(269, 146);
this.cboUserType.Name = "cboUserType";
this.cboUserType.Size = new System.Drawing.Size(163, 20);
this.cboUserType.TabIndex = 32;
//
// lblUserType
//
this.lblUserType.AutoSize = true;
this.lblUserType.BackColor = System.Drawing.Color.Transparent;
this.lblUserType.Font = new System.Drawing.Font("Century Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblUserType.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblUserType.Location = new System.Drawing.Point(173, 146);
this.lblUserType.Name = "lblUserType";
this.lblUserType.Size = new System.Drawing.Size(59, 18);
this.lblUserType.TabIndex = 33;
this.lblUserType.Text = "用户类型";
//
// btnHelp
//
this.btnHelp.BackColor = System.Drawing.Color.Transparent;
this.btnHelp.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnHelp.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.btnHelp.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.btnHelp.Location = new System.Drawing.Point(696, 26);
this.btnHelp.Name = "btnHelp";
this.btnHelp.Size = new System.Drawing.Size(72, 26);
this.btnHelp.TabIndex = 34;
this.btnHelp.Text = "帮助(&H)";
this.btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
//
// errUser
//
this.errUser.ContainerControl = this;
//
// frmUser
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(783, 520);
this.Controls.Add(this.btnHelp);
this.Controls.Add(this.lblUserType);
this.Controls.Add(this.lblCreateUser);
this.Controls.Add(this.txtConfirmPwd);
this.Controls.Add(this.lblConfirmPwd);
this.Controls.Add(this.txtPassword);
this.Controls.Add(this.lblPassword);
this.Controls.Add(this.txtUsername);
this.Controls.Add(this.lblUsername);
this.Controls.Add(this.grpPersonalDetails);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnSave);
this.Controls.Add(this.cboUserType);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Location = new System.Drawing.Point(146, 115);
this.Name = "frmUser";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "frmUser";
this.TopMost = true;
this.Load += new System.EventHandler(this.frmUser_Load);
this.grpPersonalDetails.ResumeLayout(false);
this.grpStatus.ResumeLayout(false);
this.grpGender.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void btnSave_Click(object sender, System.EventArgs e)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -