diff --git a/ShoeStore/ShoeStore/Forms/FormShoesReplenishment.cs b/ShoeStore/ShoeStore/Forms/FormShoesReplenishment.cs index c96d521..149a5c6 100644 --- a/ShoeStore/ShoeStore/Forms/FormShoesReplenishment.cs +++ b/ShoeStore/ShoeStore/Forms/FormShoesReplenishment.cs @@ -79,6 +79,9 @@ namespace ShoeStore.Forms } - + private void comboBoxFactory_SelectedIndexChanged(object sender, EventArgs e) + { + + } } } diff --git a/ShoeStore/ShoeStore/Forms/FormShoess.Designer.cs b/ShoeStore/ShoeStore/Forms/FormShoess.Designer.cs index 30dc6c5..0f7f8b7 100644 --- a/ShoeStore/ShoeStore/Forms/FormShoess.Designer.cs +++ b/ShoeStore/ShoeStore/Forms/FormShoess.Designer.cs @@ -111,7 +111,7 @@ namespace ShoeStore.Forms Name = "FormShoess"; StartPosition = FormStartPosition.CenterParent; Text = "Обувь"; - Load += FormStores_Load; + Load += FormShoess_Load; panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)dataGridViewData).EndInit(); ResumeLayout(false); diff --git a/ShoeStore/ShoeStore/Forms/FormShoess.cs b/ShoeStore/ShoeStore/Forms/FormShoess.cs index 1ba8fe3..9c98baf 100644 --- a/ShoeStore/ShoeStore/Forms/FormShoess.cs +++ b/ShoeStore/ShoeStore/Forms/FormShoess.cs @@ -116,10 +116,7 @@ namespace ShoeStore.Forms { } - private void FormStores_Load(object sender, EventArgs e) - { - - } + } diff --git a/ShoeStore/ShoeStore/Repositories/Implementations/FactoryRepository.cs b/ShoeStore/ShoeStore/Repositories/Implementations/FactoryRepository.cs index 45b3022..3fab41d 100644 --- a/ShoeStore/ShoeStore/Repositories/Implementations/FactoryRepository.cs +++ b/ShoeStore/ShoeStore/Repositories/Implementations/FactoryRepository.cs @@ -119,7 +119,7 @@ WHERE Id=@id"; try { using var connection = new - SqlConnection(_connectionString.ConnectionString); + NpgsqlConnection(_connectionString.ConnectionString); var querySelect = "SELECT * FROM Factorys"; var factorys = connection.Query(querySelect); _logger.LogDebug("Полученные объекты: {json}",