TableEditorForm.Designer.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. namespace TravelAgencyWinForms.Forms;
  2. partial class TableEditorForm
  3. {
  4. private System.ComponentModel.IContainer components = null;
  5. private Panel rootPanel;
  6. private Panel headerPanel;
  7. private Label titleLabel;
  8. private Label subtitleLabel;
  9. private FlowLayoutPanel actionsPanel;
  10. private Button refreshButton;
  11. private Button addButton;
  12. private Button editButton;
  13. private Button deleteButton;
  14. private Label searchLabel;
  15. private TextBox searchTextBox;
  16. private FlowLayoutPanel calculatedPanel;
  17. private Label infoLabel;
  18. private DataGridView dataGrid;
  19. private Panel emptyPanel;
  20. private TableLayoutPanel emptyLayout;
  21. private PictureBox emptyPictureBox;
  22. private Label emptyLabel;
  23. protected override void Dispose(bool disposing)
  24. {
  25. if (disposing && components != null)
  26. components.Dispose();
  27. base.Dispose(disposing);
  28. }
  29. private void InitializeComponent()
  30. {
  31. components = new System.ComponentModel.Container();
  32. rootPanel = new Panel();
  33. headerPanel = new Panel();
  34. titleLabel = new Label();
  35. subtitleLabel = new Label();
  36. actionsPanel = new FlowLayoutPanel();
  37. refreshButton = new Button();
  38. addButton = new Button();
  39. editButton = new Button();
  40. deleteButton = new Button();
  41. searchLabel = new Label();
  42. searchTextBox = new TextBox();
  43. calculatedPanel = new FlowLayoutPanel();
  44. infoLabel = new Label();
  45. dataGrid = new DataGridView();
  46. emptyPanel = new Panel();
  47. emptyLayout = new TableLayoutPanel();
  48. emptyPictureBox = new PictureBox();
  49. emptyLabel = new Label();
  50. SuspendLayout();
  51. StartPosition = FormStartPosition.CenterParent;
  52. WindowState = FormWindowState.Maximized;
  53. MinimumSize = new Size(1000, 650);
  54. rootPanel.Dock = DockStyle.Fill;
  55. rootPanel.Padding = new Padding(18);
  56. headerPanel.Dock = DockStyle.Top;
  57. headerPanel.Height = 86;
  58. headerPanel.Padding = new Padding(20, 16, 20, 16);
  59. headerPanel.BorderStyle = BorderStyle.FixedSingle;
  60. titleLabel.Dock = DockStyle.Top;
  61. titleLabel.Height = 30;
  62. titleLabel.Font = new Font("Segoe UI Semibold", 18F);
  63. subtitleLabel.Dock = DockStyle.Fill;
  64. subtitleLabel.Font = new Font("Segoe UI", 9.5F);
  65. headerPanel.Controls.Add(subtitleLabel);
  66. headerPanel.Controls.Add(titleLabel);
  67. actionsPanel.Dock = DockStyle.Top;
  68. actionsPanel.Height = 52;
  69. actionsPanel.Padding = new Padding(0, 6, 0, 6);
  70. refreshButton.Text = "Обновить";
  71. refreshButton.Width = 120;
  72. refreshButton.Height = 36;
  73. refreshButton.Click += RefreshButton_Click;
  74. addButton.Text = "Добавить";
  75. addButton.Width = 120;
  76. addButton.Height = 36;
  77. addButton.Click += AddButton_Click;
  78. editButton.Text = "Изменить";
  79. editButton.Width = 120;
  80. editButton.Height = 36;
  81. editButton.Click += EditButton_Click;
  82. deleteButton.Text = "Удалить";
  83. deleteButton.Width = 120;
  84. deleteButton.Height = 36;
  85. deleteButton.Click += DeleteButton_Click;
  86. searchLabel.Text = "Поиск";
  87. searchLabel.AutoSize = true;
  88. searchLabel.Padding = new Padding(12, 9, 0, 0);
  89. searchTextBox.Width = 220;
  90. searchTextBox.TextChanged += SearchTextBox_TextChanged;
  91. actionsPanel.Controls.Add(refreshButton);
  92. actionsPanel.Controls.Add(addButton);
  93. actionsPanel.Controls.Add(editButton);
  94. actionsPanel.Controls.Add(deleteButton);
  95. actionsPanel.Controls.Add(searchLabel);
  96. actionsPanel.Controls.Add(searchTextBox);
  97. calculatedPanel.Dock = DockStyle.Top;
  98. calculatedPanel.Height = 78;
  99. calculatedPanel.WrapContents = false;
  100. calculatedPanel.AutoScroll = true;
  101. calculatedPanel.Visible = false;
  102. infoLabel.Dock = DockStyle.Bottom;
  103. infoLabel.Height = 24;
  104. infoLabel.TextAlign = ContentAlignment.MiddleLeft;
  105. dataGrid.Dock = DockStyle.Fill;
  106. dataGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells;
  107. dataGrid.SelectionChanged += DataGrid_SelectionChanged;
  108. emptyPanel.Dock = DockStyle.Fill;
  109. emptyPanel.Visible = false;
  110. emptyLayout.Dock = DockStyle.Fill;
  111. emptyLayout.ColumnCount = 1;
  112. emptyLayout.RowCount = 2;
  113. emptyLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 75));
  114. emptyLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 25));
  115. emptyPictureBox.Anchor = AnchorStyles.None;
  116. emptyPictureBox.Size = new Size(220, 220);
  117. emptyPictureBox.SizeMode = PictureBoxSizeMode.Zoom;
  118. emptyLabel.Dock = DockStyle.Fill;
  119. emptyLabel.Text = "Данные не найдены";
  120. emptyLabel.TextAlign = ContentAlignment.TopCenter;
  121. emptyLabel.Font = new Font("Segoe UI", 11F);
  122. emptyLayout.Controls.Add(emptyPictureBox, 0, 0);
  123. emptyLayout.Controls.Add(emptyLabel, 0, 1);
  124. emptyPanel.Controls.Add(emptyLayout);
  125. rootPanel.Controls.Add(emptyPanel);
  126. rootPanel.Controls.Add(dataGrid);
  127. rootPanel.Controls.Add(infoLabel);
  128. rootPanel.Controls.Add(calculatedPanel);
  129. rootPanel.Controls.Add(actionsPanel);
  130. rootPanel.Controls.Add(headerPanel);
  131. Controls.Add(rootPanel);
  132. ResumeLayout(false);
  133. }
  134. }