| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- namespace TravelAgencyWinForms.Forms;
- partial class LoginForm
- {
- private System.ComponentModel.IContainer components = null;
- private TableLayoutPanel rootPanel;
- private Panel imagePanel;
- private PictureBox welcomePictureBox;
- private Panel authPanel;
- private Label titleLabel;
- private Label subtitleLabel;
- private Label loginLabel;
- private Label passwordLabel;
- private TextBox loginTextBox;
- private TextBox passwordTextBox;
- private Button loginButton;
- private Button exitButton;
- private Label statusLabel;
- private TableLayoutPanel formPanel;
- private FlowLayoutPanel buttonsPanel;
- protected override void Dispose(bool disposing)
- {
- if (disposing && components != null)
- components.Dispose();
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- components = new System.ComponentModel.Container();
- rootPanel = new TableLayoutPanel();
- imagePanel = new Panel();
- welcomePictureBox = new PictureBox();
- authPanel = new Panel();
- titleLabel = new Label();
- subtitleLabel = new Label();
- formPanel = new TableLayoutPanel();
- loginLabel = new Label();
- passwordLabel = new Label();
- loginTextBox = new TextBox();
- passwordTextBox = new TextBox();
- buttonsPanel = new FlowLayoutPanel();
- loginButton = new Button();
- exitButton = new Button();
- statusLabel = new Label();
- SuspendLayout();
- Text = "Вход";
- StartPosition = FormStartPosition.CenterScreen;
- FormBorderStyle = FormBorderStyle.FixedDialog;
- MaximizeBox = false;
- MinimizeBox = false;
- ClientSize = new Size(820, 430);
- rootPanel.Dock = DockStyle.Fill;
- rootPanel.ColumnCount = 2;
- rootPanel.RowCount = 1;
- rootPanel.Padding = new Padding(22);
- rootPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 350));
- rootPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100));
- imagePanel.Dock = DockStyle.Fill;
- imagePanel.Padding = new Padding(10);
- imagePanel.BorderStyle = BorderStyle.FixedSingle;
- welcomePictureBox.Dock = DockStyle.Fill;
- welcomePictureBox.SizeMode = PictureBoxSizeMode.Zoom;
- imagePanel.Controls.Add(welcomePictureBox);
- authPanel.Dock = DockStyle.Fill;
- authPanel.Padding = new Padding(34, 32, 34, 24);
- authPanel.BorderStyle = BorderStyle.FixedSingle;
- titleLabel.Dock = DockStyle.Top;
- titleLabel.Height = 42;
- titleLabel.Text = "Турагентство";
- titleLabel.Font = new Font("Segoe UI Semibold", 22F, FontStyle.Regular);
- subtitleLabel.Dock = DockStyle.Top;
- subtitleLabel.Height = 30;
- subtitleLabel.Text = "Вход в информационную систему";
- subtitleLabel.Font = new Font("Segoe UI", 10F, FontStyle.Regular);
- formPanel.Dock = DockStyle.Top;
- formPanel.Height = 180;
- formPanel.ColumnCount = 1;
- formPanel.RowCount = 5;
- formPanel.Padding = new Padding(0, 14, 0, 0);
- formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 24));
- formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 38));
- formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 24));
- formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 38));
- formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 56));
- loginLabel.AutoSize = true;
- loginLabel.Text = "Логин";
- passwordLabel.AutoSize = true;
- passwordLabel.Text = "Пароль";
- loginTextBox.Width = 260;
- passwordTextBox.Width = 260;
- passwordTextBox.UseSystemPasswordChar = true;
- passwordTextBox.KeyDown += PasswordTextBox_KeyDown;
- buttonsPanel.Dock = DockStyle.Fill;
- buttonsPanel.FlowDirection = FlowDirection.LeftToRight;
- loginButton.Text = "Войти";
- loginButton.Width = 120;
- loginButton.Height = 36;
- loginButton.Click += LoginButton_Click;
- exitButton.Text = "Выйти";
- exitButton.Width = 120;
- exitButton.Height = 36;
- exitButton.Click += ExitButton_Click;
- buttonsPanel.Controls.Add(loginButton);
- buttonsPanel.Controls.Add(exitButton);
- formPanel.Controls.Add(loginLabel, 0, 0);
- formPanel.Controls.Add(loginTextBox, 0, 1);
- formPanel.Controls.Add(passwordLabel, 0, 2);
- formPanel.Controls.Add(passwordTextBox, 0, 3);
- formPanel.Controls.Add(buttonsPanel, 0, 4);
- statusLabel.Dock = DockStyle.Bottom;
- statusLabel.Height = 52;
- statusLabel.TextAlign = ContentAlignment.MiddleLeft;
- authPanel.Controls.Add(statusLabel);
- authPanel.Controls.Add(formPanel);
- authPanel.Controls.Add(subtitleLabel);
- authPanel.Controls.Add(titleLabel);
- rootPanel.Controls.Add(imagePanel, 0, 0);
- rootPanel.Controls.Add(authPanel, 1, 0);
- Controls.Add(rootPanel);
- ResumeLayout(false);
- }
- }
|