private void crearToolStripMenuItem_Click(object sender, EventArgs e) { Principal.CodigoPrincipalAbm = null; FrmPresupuesto frm = new SistemaFact.FrmPresupuesto(); frm.Show(); }
private void button1_Click(object sender, EventArgs e) { if (Grilla.CurrentRow == null) { Mensaje("Debe seleccionar un registro"); return; } Principal.CodigoPrincipalAbm = Grilla.CurrentRow.Cells[0].Value.ToString(); this.Close(); if (Principal.CodigoSenia == "1") { FrmPresupuesto frm = new SistemaFact.FrmPresupuesto(); frm.Show(); } }