private void btnAgregarAuto_Click(object sender, EventArgs e) { Principal.CodigoPrincipalAbm = null; FrmRegistrarAgenda frm = new FrmRegistrarAgenda(); frm.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { if (Grilla.CurrentRow == null) { Mensaje("Debe seleccionar un registro"); return; } Int32 CodAgenda = Convert.ToInt32(Grilla.CurrentRow.Cells[0].Value); Principal.CodigoPrincipalAbm = CodAgenda.ToString(); FrmRegistrarAgenda frm = new FrmRegistrarAgenda(); frm.ShowDialog(); }