This commit is contained in:
revengel66 2024-03-12 20:03:49 +04:00
parent be33d7b34b
commit c9383db629
3 changed files with 5 additions and 2 deletions

View File

@ -38,6 +38,7 @@
//
// dataGridView
//
dataGridView.BackgroundColor = SystemColors.ControlLightLight;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Dock = DockStyle.Left;
dataGridView.Location = new Point(0, 0);

View File

@ -86,6 +86,7 @@
//
// dataGridView
//
dataGridView.BackgroundColor = SystemColors.ControlLightLight;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Dock = DockStyle.Left;
dataGridView.Location = new Point(0, 0);

View File

@ -71,7 +71,8 @@ namespace PizzeriaBusinessLogic.BusinessLogic
{
CheckModel(model, false);
var order = _orderStorage.GetElement(new OrderSearchModel { Id = model.Id });
var searchOrder = new OrderSearchModel { Id = model.Id };
var order = _orderStorage.GetElement(searchOrder);
if (order == null)
{