private void Edit(Order item) { using (OrderForm form = new OrderForm(_model, item, _model.OrderInventoryGetByOrder(item.Id))) { if (form.ShowDialog() != DialogResult.OK) item.RejectChanges(); else ShowOrders(); } }
private void Edit(Order item) { using (OrderForm form = new OrderForm(_model, item, _model.OrderInventoryGetByOrder(item.Id))) { if (form.ShowDialog() != DialogResult.OK) item.RejectChanges(); else ShowOrders(); } }