namespace TravelAgencyWinForms.Forms; partial class TableEditorForm { private System.ComponentModel.IContainer components = null; private Panel rootPanel; private Panel headerPanel; private Label titleLabel; private Label subtitleLabel; private FlowLayoutPanel actionsPanel; private Button refreshButton; private Button addButton; private Button editButton; private Button deleteButton; private Label searchLabel; private TextBox searchTextBox; private FlowLayoutPanel calculatedPanel; private Label infoLabel; private DataGridView dataGrid; private Panel emptyPanel; private TableLayoutPanel emptyLayout; private PictureBox emptyPictureBox; private Label emptyLabel; 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 Panel(); headerPanel = new Panel(); titleLabel = new Label(); subtitleLabel = new Label(); actionsPanel = new FlowLayoutPanel(); refreshButton = new Button(); addButton = new Button(); editButton = new Button(); deleteButton = new Button(); searchLabel = new Label(); searchTextBox = new TextBox(); calculatedPanel = new FlowLayoutPanel(); infoLabel = new Label(); dataGrid = new DataGridView(); emptyPanel = new Panel(); emptyLayout = new TableLayoutPanel(); emptyPictureBox = new PictureBox(); emptyLabel = new Label(); SuspendLayout(); StartPosition = FormStartPosition.CenterParent; WindowState = FormWindowState.Maximized; MinimumSize = new Size(1000, 650); rootPanel.Dock = DockStyle.Fill; rootPanel.Padding = new Padding(18); headerPanel.Dock = DockStyle.Top; headerPanel.Height = 86; headerPanel.Padding = new Padding(20, 16, 20, 16); headerPanel.BorderStyle = BorderStyle.FixedSingle; titleLabel.Dock = DockStyle.Top; titleLabel.Height = 30; titleLabel.Font = new Font("Segoe UI Semibold", 18F); subtitleLabel.Dock = DockStyle.Fill; subtitleLabel.Font = new Font("Segoe UI", 9.5F); headerPanel.Controls.Add(subtitleLabel); headerPanel.Controls.Add(titleLabel); actionsPanel.Dock = DockStyle.Top; actionsPanel.Height = 52; actionsPanel.Padding = new Padding(0, 6, 0, 6); refreshButton.Text = "Обновить"; refreshButton.Width = 120; refreshButton.Height = 36; refreshButton.Click += RefreshButton_Click; addButton.Text = "Добавить"; addButton.Width = 120; addButton.Height = 36; addButton.Click += AddButton_Click; editButton.Text = "Изменить"; editButton.Width = 120; editButton.Height = 36; editButton.Click += EditButton_Click; deleteButton.Text = "Удалить"; deleteButton.Width = 120; deleteButton.Height = 36; deleteButton.Click += DeleteButton_Click; searchLabel.Text = "Поиск"; searchLabel.AutoSize = true; searchLabel.Padding = new Padding(12, 9, 0, 0); searchTextBox.Width = 220; searchTextBox.TextChanged += SearchTextBox_TextChanged; actionsPanel.Controls.Add(refreshButton); actionsPanel.Controls.Add(addButton); actionsPanel.Controls.Add(editButton); actionsPanel.Controls.Add(deleteButton); actionsPanel.Controls.Add(searchLabel); actionsPanel.Controls.Add(searchTextBox); calculatedPanel.Dock = DockStyle.Top; calculatedPanel.Height = 78; calculatedPanel.WrapContents = false; calculatedPanel.AutoScroll = true; calculatedPanel.Visible = false; infoLabel.Dock = DockStyle.Bottom; infoLabel.Height = 24; infoLabel.TextAlign = ContentAlignment.MiddleLeft; dataGrid.Dock = DockStyle.Fill; dataGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells; dataGrid.SelectionChanged += DataGrid_SelectionChanged; emptyPanel.Dock = DockStyle.Fill; emptyPanel.Visible = false; emptyLayout.Dock = DockStyle.Fill; emptyLayout.ColumnCount = 1; emptyLayout.RowCount = 2; emptyLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 75)); emptyLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 25)); emptyPictureBox.Anchor = AnchorStyles.None; emptyPictureBox.Size = new Size(220, 220); emptyPictureBox.SizeMode = PictureBoxSizeMode.Zoom; emptyLabel.Dock = DockStyle.Fill; emptyLabel.Text = "Данные не найдены"; emptyLabel.TextAlign = ContentAlignment.TopCenter; emptyLabel.Font = new Font("Segoe UI", 11F); emptyLayout.Controls.Add(emptyPictureBox, 0, 0); emptyLayout.Controls.Add(emptyLabel, 0, 1); emptyPanel.Controls.Add(emptyLayout); rootPanel.Controls.Add(emptyPanel); rootPanel.Controls.Add(dataGrid); rootPanel.Controls.Add(infoLabel); rootPanel.Controls.Add(calculatedPanel); rootPanel.Controls.Add(actionsPanel); rootPanel.Controls.Add(headerPanel); Controls.Add(rootPanel); ResumeLayout(false); } }