This commit is contained in:
antoc0der 2024-02-28 14:46:45 +03:00
parent 6e237994d4
commit 5e8132f8dd

View File

@ -87,7 +87,7 @@ namespace ProjectFlowerShop
return new OrderBindingModel
{
Id = id,
FlowerId = Convert.ToInt32(DataGridView.SelectedRows[0].Cells["IceCreamId"].Value),
FlowerId = Convert.ToInt32(DataGridView.SelectedRows[0].Cells["FlowerId"].Value),
Status = Enum.Parse<OrderStatus>(DataGridView.SelectedRows[0].Cells["Status"].Value.ToString()),
Count = Convert.ToInt32(DataGridView.SelectedRows[0].Cells["Count"].Value),
Sum = double.Parse(DataGridView.SelectedRows[0].Cells["Sum"].Value.ToString()),