private void tsBtnEditar_Click(object sender, EventArgs e) { VariablesGlobales.NroX = 2; VariablesGlobales.TratamientoIdX = int.Parse(dgvPaquete.CurrentRow.Cells[0].Value.ToString()); FrmRegistrarPaquete objFrmRP = new FrmRegistrarPaquete(); objFrmRP.ShowDialog(); }
private void tsBtnNuevo_Click(object sender, EventArgs e) { VariablesGlobales.NroX = 1; FrmRegistrarPaquete objFrmRP = new FrmRegistrarPaquete(); objFrmRP.ShowDialog(); //FrmRegistrarConciliacion frm = new FrmRegistrarConciliacion(); //frm.ShowDialog(); //if (VariablesGlobales.NroX == 1) //{ // cboEstablecimiento_SelectedIndexChanged(sender, e); //} }