private void btnAddOrder_Click(object sender, EventArgs e) { frmOrderDetails f = new frmOrderDetails(0, c_user.Id); f.ShowDialog(); LoadOrders(); }
private void dgvOrdersList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int order_id = int.Parse(dgvOrdersList.Rows[e.RowIndex].Cells["Id"].Value.ToString()); frmOrderDetails f = new frmOrderDetails(order_id, c_user.Id); f.ShowDialog(); loadOrders(); }