diff --git a/Pizzeria/Pizzeria/FormComponents.Designer.cs b/Pizzeria/Pizzeria/FormComponents.Designer.cs index 73f5145..f9373b1 100644 --- a/Pizzeria/Pizzeria/FormComponents.Designer.cs +++ b/Pizzeria/Pizzeria/FormComponents.Designer.cs @@ -38,6 +38,7 @@ // // dataGridView // + dataGridView.BackgroundColor = SystemColors.ControlLightLight; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.Dock = DockStyle.Left; dataGridView.Location = new Point(0, 0); diff --git a/Pizzeria/Pizzeria/FormPizzas.Designer.cs b/Pizzeria/Pizzeria/FormPizzas.Designer.cs index 09e90e7..478d7c9 100644 --- a/Pizzeria/Pizzeria/FormPizzas.Designer.cs +++ b/Pizzeria/Pizzeria/FormPizzas.Designer.cs @@ -86,6 +86,7 @@ // // dataGridView // + dataGridView.BackgroundColor = SystemColors.ControlLightLight; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.Dock = DockStyle.Left; dataGridView.Location = new Point(0, 0); diff --git a/Pizzeria/PizzeriaBusinessLogic/BusinessLogic/OrderLogic.cs b/Pizzeria/PizzeriaBusinessLogic/BusinessLogic/OrderLogic.cs index 6465b13..6e59690 100644 --- a/Pizzeria/PizzeriaBusinessLogic/BusinessLogic/OrderLogic.cs +++ b/Pizzeria/PizzeriaBusinessLogic/BusinessLogic/OrderLogic.cs @@ -70,8 +70,9 @@ namespace PizzeriaBusinessLogic.BusinessLogic public bool ChangeStatus(OrderBindingModel model, OrderStatus status) { 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) {