Exemple #1
0
        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();
            FrmVenta frm = new FrmVenta();

            frm.ShowDialog();
        }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (Grilla.CurrentRow == null)
     {
         Mensaje("Debe seleccionar un registro");
         return;
     }
     else
     {
         Principal.CodigodePresupuesto = Convert.ToInt32(Grilla.CurrentRow.Cells[0].Value.ToString());
         FrmVenta frm = new FrmVenta();
         frm.Show();
         this.Close();
     }
 }