LabWork1_Base: Мини поправки

This commit is contained in:
Safgerd 2023-02-27 01:24:54 +04:00
parent b6bfa96615
commit fdff71ec88
8 changed files with 4 additions and 4 deletions

View File

@ -86,6 +86,5 @@ namespace AutomobilePlant
DialogResult = DialogResult.Cancel;
Close();
}
}
}

View File

@ -29,6 +29,7 @@ namespace AutomobilePlant
{
LoadData();
}
private void LoadData()
{
try

View File

@ -110,6 +110,5 @@ namespace AutomobilePlant
{
LoadData();
}
}
}

View File

@ -29,6 +29,7 @@ namespace AutomobilePlant
{
LoadData();
}
private void LoadData()
{
_logger.LogInformation("Загрузка заказов");

View File

@ -16,6 +16,5 @@ namespace AutomobilePlantContracts.BusinessLogicContracts
bool Create(ComponentBindingModel model);
bool Update(ComponentBindingModel model);
bool Delete(ComponentBindingModel model);
}
}

View File

@ -17,6 +17,5 @@ namespace AutomobilePlantDataModels.Models
OrderStatus Status { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -94,6 +94,7 @@ namespace AutomobilePlantListImplements.Implements
}
return null;
}
public OrderViewModel? Delete(OrderBindingModel model)
{
for (int i = 0; i < _source.Orders.Count; ++i)

View File

@ -45,6 +45,7 @@ namespace AutomobilePlantListImplements.Models
Price = model.Price;
CarComponents = model.CarComponents;
}
public CarViewModel GetViewModel => new()
{
Id = Id,