LoginForm.Designer.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. namespace TravelAgencyWinForms.Forms;
  2. partial class LoginForm
  3. {
  4. private System.ComponentModel.IContainer components = null;
  5. private TableLayoutPanel rootPanel;
  6. private Panel imagePanel;
  7. private PictureBox welcomePictureBox;
  8. private Panel authPanel;
  9. private Label titleLabel;
  10. private Label subtitleLabel;
  11. private Label loginLabel;
  12. private Label passwordLabel;
  13. private TextBox loginTextBox;
  14. private TextBox passwordTextBox;
  15. private Button loginButton;
  16. private Button exitButton;
  17. private Label statusLabel;
  18. private TableLayoutPanel formPanel;
  19. private FlowLayoutPanel buttonsPanel;
  20. protected override void Dispose(bool disposing)
  21. {
  22. if (disposing && components != null)
  23. components.Dispose();
  24. base.Dispose(disposing);
  25. }
  26. private void InitializeComponent()
  27. {
  28. components = new System.ComponentModel.Container();
  29. rootPanel = new TableLayoutPanel();
  30. imagePanel = new Panel();
  31. welcomePictureBox = new PictureBox();
  32. authPanel = new Panel();
  33. titleLabel = new Label();
  34. subtitleLabel = new Label();
  35. formPanel = new TableLayoutPanel();
  36. loginLabel = new Label();
  37. passwordLabel = new Label();
  38. loginTextBox = new TextBox();
  39. passwordTextBox = new TextBox();
  40. buttonsPanel = new FlowLayoutPanel();
  41. loginButton = new Button();
  42. exitButton = new Button();
  43. statusLabel = new Label();
  44. SuspendLayout();
  45. Text = "Вход";
  46. StartPosition = FormStartPosition.CenterScreen;
  47. FormBorderStyle = FormBorderStyle.FixedDialog;
  48. MaximizeBox = false;
  49. MinimizeBox = false;
  50. ClientSize = new Size(820, 430);
  51. rootPanel.Dock = DockStyle.Fill;
  52. rootPanel.ColumnCount = 2;
  53. rootPanel.RowCount = 1;
  54. rootPanel.Padding = new Padding(22);
  55. rootPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 350));
  56. rootPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100));
  57. imagePanel.Dock = DockStyle.Fill;
  58. imagePanel.Padding = new Padding(10);
  59. imagePanel.BorderStyle = BorderStyle.FixedSingle;
  60. welcomePictureBox.Dock = DockStyle.Fill;
  61. welcomePictureBox.SizeMode = PictureBoxSizeMode.Zoom;
  62. imagePanel.Controls.Add(welcomePictureBox);
  63. authPanel.Dock = DockStyle.Fill;
  64. authPanel.Padding = new Padding(34, 32, 34, 24);
  65. authPanel.BorderStyle = BorderStyle.FixedSingle;
  66. titleLabel.Dock = DockStyle.Top;
  67. titleLabel.Height = 42;
  68. titleLabel.Text = "Турагентство";
  69. titleLabel.Font = new Font("Segoe UI Semibold", 22F, FontStyle.Regular);
  70. subtitleLabel.Dock = DockStyle.Top;
  71. subtitleLabel.Height = 30;
  72. subtitleLabel.Text = "Вход в информационную систему";
  73. subtitleLabel.Font = new Font("Segoe UI", 10F, FontStyle.Regular);
  74. formPanel.Dock = DockStyle.Top;
  75. formPanel.Height = 180;
  76. formPanel.ColumnCount = 1;
  77. formPanel.RowCount = 5;
  78. formPanel.Padding = new Padding(0, 14, 0, 0);
  79. formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 24));
  80. formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 38));
  81. formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 24));
  82. formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 38));
  83. formPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 56));
  84. loginLabel.AutoSize = true;
  85. loginLabel.Text = "Логин";
  86. passwordLabel.AutoSize = true;
  87. passwordLabel.Text = "Пароль";
  88. loginTextBox.Width = 260;
  89. passwordTextBox.Width = 260;
  90. passwordTextBox.UseSystemPasswordChar = true;
  91. passwordTextBox.KeyDown += PasswordTextBox_KeyDown;
  92. buttonsPanel.Dock = DockStyle.Fill;
  93. buttonsPanel.FlowDirection = FlowDirection.LeftToRight;
  94. loginButton.Text = "Войти";
  95. loginButton.Width = 120;
  96. loginButton.Height = 36;
  97. loginButton.Click += LoginButton_Click;
  98. exitButton.Text = "Выйти";
  99. exitButton.Width = 120;
  100. exitButton.Height = 36;
  101. exitButton.Click += ExitButton_Click;
  102. buttonsPanel.Controls.Add(loginButton);
  103. buttonsPanel.Controls.Add(exitButton);
  104. formPanel.Controls.Add(loginLabel, 0, 0);
  105. formPanel.Controls.Add(loginTextBox, 0, 1);
  106. formPanel.Controls.Add(passwordLabel, 0, 2);
  107. formPanel.Controls.Add(passwordTextBox, 0, 3);
  108. formPanel.Controls.Add(buttonsPanel, 0, 4);
  109. statusLabel.Dock = DockStyle.Bottom;
  110. statusLabel.Height = 52;
  111. statusLabel.TextAlign = ContentAlignment.MiddleLeft;
  112. authPanel.Controls.Add(statusLabel);
  113. authPanel.Controls.Add(formPanel);
  114. authPanel.Controls.Add(subtitleLabel);
  115. authPanel.Controls.Add(titleLabel);
  116. rootPanel.Controls.Add(imagePanel, 0, 0);
  117. rootPanel.Controls.Add(authPanel, 1, 0);
  118. Controls.Add(rootPanel);
  119. ResumeLayout(false);
  120. }
  121. }