private void dgClientes_MouseDoubleClick(object sender, MouseEventArgs e) { ClienteActual.Id_cliente = dgClientes.Rows[dgClientes.CurrentCell.RowIndex].Cells[0].Value.ToString(); ClienteActual.Nombre_cliente = dgClientes.Rows[dgClientes.CurrentCell.RowIndex].Cells[1].Value.ToString(); if (ClienteActual.Id_cliente != "") { frmSuscripciones frm_Suscripciones = new frmSuscripciones(); frm_Suscripciones.ShowDialog(); } }
private void dgClientes_MouseDoubleClick(object sender, MouseEventArgs e) { ClienteActual.Id_cliente = dgClientes.Rows[dgClientes.CurrentCell.RowIndex].Cells[0].Value.ToString(); ClienteActual.Nombre_cliente = dgClientes.Rows[dgClientes.CurrentCell.RowIndex].Cells[1].Value.ToString(); ClienteActual.Direccion_Cliente = dgClientes.Rows[dgClientes.CurrentCell.RowIndex].Cells[2].Value.ToString(); ClienteActual.Email_Cliente = dgClientes.Rows[dgClientes.CurrentCell.RowIndex].Cells[4].Value.ToString(); ClienteActual.Vendedor_Supervisor = dgClientes.Rows[dgClientes.CurrentCell.RowIndex].Cells[3].Value.ToString(); if (ClienteActual.Id_cliente != "") { frmSuscripciones frm_Suscripciones = new frmSuscripciones(); frm_Suscripciones.ShowDialog(); } }