This commit is contained in:
SheinaSasha 2024-12-19 14:44:49 +04:00
parent ea30177fe1
commit d381367895
4 changed files with 7 additions and 7 deletions

View File

@ -79,6 +79,9 @@ namespace ShoeStore.Forms
} }
private void comboBoxFactory_SelectedIndexChanged(object sender, EventArgs e)
{
}
} }
} }

View File

@ -111,7 +111,7 @@ namespace ShoeStore.Forms
Name = "FormShoess"; Name = "FormShoess";
StartPosition = FormStartPosition.CenterParent; StartPosition = FormStartPosition.CenterParent;
Text = "Обувь"; Text = "Обувь";
Load += FormStores_Load; Load += FormShoess_Load;
panel1.ResumeLayout(false); panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dataGridViewData).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridViewData).EndInit();
ResumeLayout(false); ResumeLayout(false);

View File

@ -116,10 +116,7 @@ namespace ShoeStore.Forms
{ {
} }
private void FormStores_Load(object sender, EventArgs e)
{
}
} }

View File

@ -119,7 +119,7 @@ WHERE Id=@id";
try try
{ {
using var connection = new using var connection = new
SqlConnection(_connectionString.ConnectionString); NpgsqlConnection(_connectionString.ConnectionString);
var querySelect = "SELECT * FROM Factorys"; var querySelect = "SELECT * FROM Factorys";
var factorys = connection.Query<Factory>(querySelect); var factorys = connection.Query<Factory>(querySelect);
_logger.LogDebug("Полученные объекты: {json}", _logger.LogDebug("Полученные объекты: {json}",