diff --git a/SewingDresses/FormMain.cs b/SewingDresses/FormMain.cs index 66ee685..002cab5 100644 --- a/SewingDresses/FormMain.cs +++ b/SewingDresses/FormMain.cs @@ -108,7 +108,7 @@ namespace SewingDresses try { var operationResult = _orderLogic.TakeOrderInWork(new OrderBindingModel - { + { ID = id, DressID = Convert.ToInt32(dataGridView.SelectedRows[0].Cells["DressID"].Value), Status = Enum.Parse(dataGridView.SelectedRows[0].Cells["Status"].Value.ToString()), @@ -198,11 +198,16 @@ namespace SewingDresses MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } - private void ButtonRef_Click(object sender, EventArgs e) - { - LoadData(); - } + } + + } + + private void ButtonRef_Click(object sender, EventArgs e) + { + LoadData(); + } + } }