Пагинация запросов и исправление отображений
This commit is contained in:
Generated
+107
-10
@@ -32,6 +32,13 @@ partial class MainViewForm
|
||||
InnerSplitContainer = new SplitContainer();
|
||||
TypesListBox = new ListBox();
|
||||
EntityGridView = new DataGridView();
|
||||
PaginationPagel = new Panel();
|
||||
PageTextBox = new TextBox();
|
||||
PaginationLabel = new TextBox();
|
||||
LastPageButton = new Button();
|
||||
NextPageButton = new Button();
|
||||
PrevPageButton = new Button();
|
||||
FirstPageButton = new Button();
|
||||
ResultSplitContainer = new SplitContainer();
|
||||
EntityTreeView = new TreeView();
|
||||
DescriptionTextBox = new TextBox();
|
||||
@@ -44,6 +51,7 @@ partial class MainViewForm
|
||||
InnerSplitContainer.Panel2.SuspendLayout();
|
||||
InnerSplitContainer.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize) EntityGridView).BeginInit();
|
||||
PaginationPagel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize) ResultSplitContainer).BeginInit();
|
||||
ResultSplitContainer.Panel1.SuspendLayout();
|
||||
ResultSplitContainer.Panel2.SuspendLayout();
|
||||
@@ -66,7 +74,7 @@ partial class MainViewForm
|
||||
RootSplitContainer.Panel2.Controls.Add(ResultSplitContainer);
|
||||
RootSplitContainer.Panel2MinSize = 400;
|
||||
RootSplitContainer.Size = new Size(1181, 688);
|
||||
RootSplitContainer.SplitterDistance = 200;
|
||||
RootSplitContainer.SplitterDistance = 254;
|
||||
RootSplitContainer.TabIndex = 0;
|
||||
//
|
||||
// InnerSplitContainer
|
||||
@@ -83,8 +91,9 @@ partial class MainViewForm
|
||||
// InnerSplitContainer.Panel2
|
||||
//
|
||||
InnerSplitContainer.Panel2.Controls.Add(EntityGridView);
|
||||
InnerSplitContainer.Size = new Size(200, 688);
|
||||
InnerSplitContainer.SplitterDistance = 274;
|
||||
InnerSplitContainer.Panel2.Controls.Add(PaginationPagel);
|
||||
InnerSplitContainer.Size = new Size(254, 688);
|
||||
InnerSplitContainer.SplitterDistance = 102;
|
||||
InnerSplitContainer.TabIndex = 1;
|
||||
//
|
||||
// TypesListBox
|
||||
@@ -94,7 +103,7 @@ partial class MainViewForm
|
||||
TypesListBox.ItemHeight = 15;
|
||||
TypesListBox.Location = new Point(0, 0);
|
||||
TypesListBox.Name = "TypesListBox";
|
||||
TypesListBox.Size = new Size(200, 274);
|
||||
TypesListBox.Size = new Size(254, 102);
|
||||
TypesListBox.TabIndex = 0;
|
||||
TypesListBox.SelectedIndexChanged += TypesListBox_SelectedIndexChanged;
|
||||
//
|
||||
@@ -105,17 +114,96 @@ partial class MainViewForm
|
||||
EntityGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
|
||||
EntityGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
EntityGridView.Dock = DockStyle.Fill;
|
||||
EntityGridView.Location = new Point(0, 0);
|
||||
EntityGridView.Location = new Point(0, 53);
|
||||
EntityGridView.MultiSelect = false;
|
||||
EntityGridView.Name = "EntityGridView";
|
||||
EntityGridView.ReadOnly = true;
|
||||
EntityGridView.RowHeadersVisible = false;
|
||||
EntityGridView.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders;
|
||||
EntityGridView.ShowEditingIcon = false;
|
||||
EntityGridView.Size = new Size(200, 410);
|
||||
EntityGridView.Size = new Size(254, 529);
|
||||
EntityGridView.TabIndex = 0;
|
||||
EntityGridView.RowStateChanged += EntityGridView_RowStateChanged;
|
||||
//
|
||||
// PaginationPagel
|
||||
//
|
||||
PaginationPagel.Controls.Add(PageTextBox);
|
||||
PaginationPagel.Controls.Add(PaginationLabel);
|
||||
PaginationPagel.Controls.Add(LastPageButton);
|
||||
PaginationPagel.Controls.Add(NextPageButton);
|
||||
PaginationPagel.Controls.Add(PrevPageButton);
|
||||
PaginationPagel.Controls.Add(FirstPageButton);
|
||||
PaginationPagel.Dock = DockStyle.Top;
|
||||
PaginationPagel.Location = new Point(0, 0);
|
||||
PaginationPagel.Name = "PaginationPagel";
|
||||
PaginationPagel.Size = new Size(254, 53);
|
||||
PaginationPagel.TabIndex = 1;
|
||||
//
|
||||
// PageTextBox
|
||||
//
|
||||
PageTextBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||
PageTextBox.Location = new Point(81, 4);
|
||||
PageTextBox.Name = "PageTextBox";
|
||||
PageTextBox.Size = new Size(92, 23);
|
||||
PageTextBox.TabIndex = 8;
|
||||
PageTextBox.Text = "1";
|
||||
PageTextBox.TextAlign = HorizontalAlignment.Center;
|
||||
PageTextBox.KeyPress += PageTextBox_KeyPress;
|
||||
//
|
||||
// PaginationLabel
|
||||
//
|
||||
PaginationLabel.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||
PaginationLabel.BorderStyle = BorderStyle.None;
|
||||
PaginationLabel.Location = new Point(3, 31);
|
||||
PaginationLabel.Name = "PaginationLabel";
|
||||
PaginationLabel.ReadOnly = true;
|
||||
PaginationLabel.Size = new Size(248, 16);
|
||||
PaginationLabel.TabIndex = 7;
|
||||
PaginationLabel.Text = "Всего";
|
||||
PaginationLabel.TextAlign = HorizontalAlignment.Center;
|
||||
//
|
||||
// LastPageButton
|
||||
//
|
||||
LastPageButton.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||
LastPageButton.Location = new Point(218, 3);
|
||||
LastPageButton.Name = "LastPageButton";
|
||||
LastPageButton.Size = new Size(33, 23);
|
||||
LastPageButton.TabIndex = 3;
|
||||
LastPageButton.Text = ">>";
|
||||
LastPageButton.UseVisualStyleBackColor = true;
|
||||
LastPageButton.Click += LastPageButton_Click;
|
||||
//
|
||||
// NextPageButton
|
||||
//
|
||||
NextPageButton.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||
NextPageButton.Location = new Point(179, 3);
|
||||
NextPageButton.Name = "NextPageButton";
|
||||
NextPageButton.Size = new Size(33, 23);
|
||||
NextPageButton.TabIndex = 2;
|
||||
NextPageButton.Text = ">";
|
||||
NextPageButton.UseVisualStyleBackColor = true;
|
||||
NextPageButton.Click += NextPageButton_Click;
|
||||
//
|
||||
// PrevPageButton
|
||||
//
|
||||
PrevPageButton.Location = new Point(42, 3);
|
||||
PrevPageButton.Name = "PrevPageButton";
|
||||
PrevPageButton.Size = new Size(33, 23);
|
||||
PrevPageButton.TabIndex = 1;
|
||||
PrevPageButton.Text = "<";
|
||||
PrevPageButton.UseVisualStyleBackColor = true;
|
||||
PrevPageButton.Click += PrevPageButton_Click;
|
||||
//
|
||||
// FirstPageButton
|
||||
//
|
||||
FirstPageButton.Location = new Point(3, 3);
|
||||
FirstPageButton.Name = "FirstPageButton";
|
||||
FirstPageButton.Size = new Size(33, 23);
|
||||
FirstPageButton.TabIndex = 0;
|
||||
FirstPageButton.Text = "<<";
|
||||
FirstPageButton.UseVisualStyleBackColor = true;
|
||||
FirstPageButton.Click += FirstPageButton_Click;
|
||||
//
|
||||
// ResultSplitContainer
|
||||
//
|
||||
ResultSplitContainer.Dock = DockStyle.Fill;
|
||||
@@ -129,8 +217,8 @@ partial class MainViewForm
|
||||
// ResultSplitContainer.Panel2
|
||||
//
|
||||
ResultSplitContainer.Panel2.Controls.Add(DescriptionTextBox);
|
||||
ResultSplitContainer.Size = new Size(977, 688);
|
||||
ResultSplitContainer.SplitterDistance = 495;
|
||||
ResultSplitContainer.Size = new Size(923, 688);
|
||||
ResultSplitContainer.SplitterDistance = 467;
|
||||
ResultSplitContainer.TabIndex = 1;
|
||||
//
|
||||
// EntityTreeView
|
||||
@@ -138,7 +226,7 @@ partial class MainViewForm
|
||||
EntityTreeView.Dock = DockStyle.Fill;
|
||||
EntityTreeView.Location = new Point(0, 0);
|
||||
EntityTreeView.Name = "EntityTreeView";
|
||||
EntityTreeView.Size = new Size(495, 688);
|
||||
EntityTreeView.Size = new Size(467, 688);
|
||||
EntityTreeView.TabIndex = 0;
|
||||
//
|
||||
// DescriptionTextBox
|
||||
@@ -149,7 +237,7 @@ partial class MainViewForm
|
||||
DescriptionTextBox.Name = "DescriptionTextBox";
|
||||
DescriptionTextBox.ReadOnly = true;
|
||||
DescriptionTextBox.ScrollBars = ScrollBars.Vertical;
|
||||
DescriptionTextBox.Size = new Size(478, 688);
|
||||
DescriptionTextBox.Size = new Size(452, 688);
|
||||
DescriptionTextBox.TabIndex = 0;
|
||||
//
|
||||
// MainViewForm
|
||||
@@ -169,6 +257,8 @@ partial class MainViewForm
|
||||
((System.ComponentModel.ISupportInitialize) InnerSplitContainer).EndInit();
|
||||
InnerSplitContainer.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize) EntityGridView).EndInit();
|
||||
PaginationPagel.ResumeLayout(false);
|
||||
PaginationPagel.PerformLayout();
|
||||
ResultSplitContainer.Panel1.ResumeLayout(false);
|
||||
ResultSplitContainer.Panel2.ResumeLayout(false);
|
||||
ResultSplitContainer.Panel2.PerformLayout();
|
||||
@@ -186,4 +276,11 @@ partial class MainViewForm
|
||||
private TreeView EntityTreeView;
|
||||
private SplitContainer ResultSplitContainer;
|
||||
private TextBox DescriptionTextBox;
|
||||
private Panel PaginationPagel;
|
||||
private Button LastPageButton;
|
||||
private Button NextPageButton;
|
||||
private Button PrevPageButton;
|
||||
private Button FirstPageButton;
|
||||
private TextBox PageTextBox;
|
||||
private TextBox PaginationLabel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user