Сделал форму редактирования пользователя

This commit is contained in:
Никита Потапов 2024-04-30 11:20:06 +04:00
parent 3d80a7ade7
commit 3bb5f4d611
2 changed files with 158 additions and 29 deletions

View File

@ -28,12 +28,141 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Text = "FormUser";
labelFIO = new Label();
labelEmail = new Label();
labelPassword = new Label();
labelRole = new Label();
buttonCancel = new Button();
buttonApply = new Button();
textBoxFIO = new TextBox();
textBoxEmail = new TextBox();
textBoxPassword = new TextBox();
comboBoxRole = new ComboBox();
SuspendLayout();
//
// labelFIO
//
labelFIO.AutoSize = true;
labelFIO.Location = new Point(12, 9);
labelFIO.Name = "labelFIO";
labelFIO.Size = new Size(42, 20);
labelFIO.TabIndex = 0;
labelFIO.Text = "ФИО";
//
// labelEmail
//
labelEmail.AutoSize = true;
labelEmail.Location = new Point(12, 43);
labelEmail.Name = "labelEmail";
labelEmail.Size = new Size(46, 20);
labelEmail.TabIndex = 1;
labelEmail.Text = "Email";
//
// labelPassword
//
labelPassword.AutoSize = true;
labelPassword.Location = new Point(12, 73);
labelPassword.Name = "labelPassword";
labelPassword.Size = new Size(62, 20);
labelPassword.TabIndex = 2;
labelPassword.Text = "Пароль";
//
// labelRole
//
labelRole.AutoSize = true;
labelRole.Location = new Point(12, 114);
labelRole.Name = "labelRole";
labelRole.Size = new Size(42, 20);
labelRole.TabIndex = 3;
labelRole.Text = "Роль";
//
// buttonCancel
//
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonCancel.Location = new Point(526, 152);
buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(94, 29);
buttonCancel.TabIndex = 5;
buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true;
//
// buttonApply
//
buttonApply.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonApply.Location = new Point(426, 152);
buttonApply.Name = "buttonApply";
buttonApply.Size = new Size(94, 29);
buttonApply.TabIndex = 4;
buttonApply.Text = "Сохранить";
buttonApply.UseVisualStyleBackColor = true;
//
// textBoxFIO
//
textBoxFIO.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBoxFIO.Location = new Point(87, 6);
textBoxFIO.Name = "textBoxFIO";
textBoxFIO.Size = new Size(533, 27);
textBoxFIO.TabIndex = 6;
//
// textBoxEmail
//
textBoxEmail.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBoxEmail.Location = new Point(87, 40);
textBoxEmail.Name = "textBoxEmail";
textBoxEmail.Size = new Size(533, 27);
textBoxEmail.TabIndex = 7;
//
// textBoxPassword
//
textBoxPassword.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBoxPassword.Location = new Point(87, 73);
textBoxPassword.Name = "textBoxPassword";
textBoxPassword.Size = new Size(533, 27);
textBoxPassword.TabIndex = 8;
//
// comboBoxRole
//
comboBoxRole.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
comboBoxRole.DropDownStyle = ComboBoxStyle.DropDownList;
comboBoxRole.FormattingEnabled = true;
comboBoxRole.Location = new Point(87, 111);
comboBoxRole.Name = "comboBoxRole";
comboBoxRole.Size = new Size(533, 28);
comboBoxRole.TabIndex = 9;
//
// FormUser
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(632, 193);
Controls.Add(comboBoxRole);
Controls.Add(textBoxPassword);
Controls.Add(textBoxEmail);
Controls.Add(textBoxFIO);
Controls.Add(buttonCancel);
Controls.Add(buttonApply);
Controls.Add(labelRole);
Controls.Add(labelPassword);
Controls.Add(labelEmail);
Controls.Add(labelFIO);
MinimumSize = new Size(0, 240);
Name = "FormUser";
Text = "Редактировать пользователя";
ResumeLayout(false);
PerformLayout();
}
#endregion
private Label labelFIO;
private Label labelEmail;
private Label labelPassword;
private Label labelRole;
private Button buttonCancel;
private Button buttonApply;
private TextBox textBoxFIO;
private TextBox textBoxEmail;
private TextBox textBoxPassword;
private ComboBox comboBoxRole;
}
}