private void toolStripButton2_Click(object sender, EventArgs e) { if (dgSuscripciones.CurrentCell != null) { ClienteActual.Id_Suscripcion = System.Convert.ToInt32(dgSuscripciones.Rows[dgSuscripciones.CurrentCell.RowIndex].Cells[10].Value.ToString()); ClienteActual.cantidad = System.Convert.ToInt32(dgSuscripciones.Rows[dgSuscripciones.CurrentCell.RowIndex].Cells[3].Value.ToString()); ClienteActual.nro_contrato = dgSuscripciones.Rows[dgSuscripciones.CurrentCell.RowIndex].Cells[4].Value.ToString(); if (ClienteActual.Id_Suscripcion != 0) { frm_MaterialEntregado frmMaterialEntregado = new frm_MaterialEntregado(); frmMaterialEntregado.ShowDialog(); } } }
private void toolStripButton2_Click(object sender, EventArgs e) { if (dgSuscripciones.CurrentCell != null) { ClienteActual.Id_Suscripcion = System.Convert.ToInt32(dgSuscripciones.Rows[dgSuscripciones.CurrentCell.RowIndex].Cells[10].Value.ToString()); ClienteActual.cantidad = System.Convert.ToInt32(dgSuscripciones.Rows[dgSuscripciones.CurrentCell.RowIndex].Cells[3].Value.ToString()); ClienteActual.nro_contrato = dgSuscripciones.Rows[dgSuscripciones.CurrentCell.RowIndex].Cells[4].Value.ToString(); if (ClienteActual.Id_Suscripcion != 0) { frm_MaterialEntregado frmMaterialEntregado = new frm_MaterialEntregado(); frmMaterialEntregado.ShowDialog(); } } }