Exemplo n.º 1
0
        private void btnAddOrder_Click(object sender, EventArgs e)
        {
            frmOrderDetails f = new frmOrderDetails(0, c_user.Id);

            f.ShowDialog();
            LoadOrders();
        }
Exemplo n.º 2
0
        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();
        }