diff --git a/ProjectLibrary/Entites/Book_Orders.cs b/ProjectLibrary/Entites/Book_Orders.cs index 83876a2..5e14df2 100644 --- a/ProjectLibrary/Entites/Book_Orders.cs +++ b/ProjectLibrary/Entites/Book_Orders.cs @@ -9,10 +9,9 @@ namespace ProjectLibrary.Entites { public class Book_Orders { - [Browsable(false)] public int BookID { get; private set; } - [Browsable(false)] + public int OrderID { get; private set; } [DisplayName("Количество")] diff --git a/ProjectLibrary/Entites/Book_library.cs b/ProjectLibrary/Entites/Book_library.cs index f79ca6c..7806809 100644 --- a/ProjectLibrary/Entites/Book_library.cs +++ b/ProjectLibrary/Entites/Book_library.cs @@ -4,10 +4,8 @@ namespace ProjectLibrary.Entites { public class Book_Library { - [Browsable(false)] public int BookID { get; private set; } - [Browsable(false)] public int LibraryID { get; private set; } [DisplayName("Количество")] public int Count { get; private set; } diff --git a/ProjectLibrary/Forms/FBooks.Designer.cs b/ProjectLibrary/Forms/FBooks.Designer.cs index b11ed39..4359dd1 100644 --- a/ProjectLibrary/Forms/FBooks.Designer.cs +++ b/ProjectLibrary/Forms/FBooks.Designer.cs @@ -40,57 +40,52 @@ dataGridViewBooks.AllowUserToAddRows = false; dataGridViewBooks.AllowUserToDeleteRows = false; dataGridViewBooks.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridViewBooks.Location = new Point(10, 9); - dataGridViewBooks.Margin = new Padding(3, 2, 3, 2); + dataGridViewBooks.Location = new Point(11, 12); dataGridViewBooks.Name = "dataGridViewBooks"; dataGridViewBooks.ReadOnly = true; dataGridViewBooks.RowHeadersWidth = 51; dataGridViewBooks.SelectionMode = DataGridViewSelectionMode.FullRowSelect; - dataGridViewBooks.Size = new Size(602, 254); + dataGridViewBooks.Size = new Size(688, 339); dataGridViewBooks.TabIndex = 8; // // buttonAdd // - buttonAdd.Location = new Point(27, 267); - buttonAdd.Margin = new Padding(3, 2, 3, 2); + buttonAdd.Location = new Point(31, 356); buttonAdd.Name = "buttonAdd"; - buttonAdd.Size = new Size(161, 37); + buttonAdd.Size = new Size(184, 49); buttonAdd.TabIndex = 9; buttonAdd.Text = "Добавить"; buttonAdd.Click += buttonAdd_Click; // // buttonUpdate // - buttonUpdate.Location = new Point(247, 267); - buttonUpdate.Margin = new Padding(3, 2, 3, 2); + buttonUpdate.Location = new Point(282, 356); buttonUpdate.Name = "buttonUpdate"; - buttonUpdate.Size = new Size(161, 37); + buttonUpdate.Size = new Size(184, 49); buttonUpdate.TabIndex = 10; buttonUpdate.Text = "Изменить"; buttonUpdate.Click += buttonUpdate_Click; // // buttonRemove // - buttonRemove.Location = new Point(452, 267); - buttonRemove.Margin = new Padding(3, 2, 3, 2); + buttonRemove.Location = new Point(517, 356); buttonRemove.Name = "buttonRemove"; - buttonRemove.Size = new Size(161, 37); + buttonRemove.Size = new Size(184, 49); buttonRemove.TabIndex = 11; buttonRemove.Text = "Удалить"; buttonRemove.Click += buttonRemove_Click; // // FBooks // - AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(700, 338); + ClientSize = new Size(800, 451); Controls.Add(dataGridViewBooks); Controls.Add(buttonAdd); Controls.Add(buttonUpdate); Controls.Add(buttonRemove); - Margin = new Padding(3, 2, 3, 2); Name = "FBooks"; - Text = "FBooks"; + Text = "Книги"; Load += FBooks_Load; ((System.ComponentModel.ISupportInitialize)dataGridViewBooks).EndInit(); ResumeLayout(false); diff --git a/ProjectLibrary/Forms/FBooks.resx b/ProjectLibrary/Forms/FBooks.resx index af32865..8b2ff64 100644 --- a/ProjectLibrary/Forms/FBooks.resx +++ b/ProjectLibrary/Forms/FBooks.resx @@ -1,7 +1,7 @@