Esempio n. 1
0
        private void BtnNuevo_Click(object sender, EventArgs e)
        {
            Reserva    nuevo   = this.reservas.Nuevo();
            FrmReserva FrmRese = new FrmReserva(nuevo);

            FrmRese.MdiParent    = this.MdiParent;
            FrmRese.FormClosing += new FormClosingEventHandler(FrmRese_FormClosing);
            FrmRese.Show();
        }
Esempio n. 2
0
 private void BtnFicha_Click(object sender, EventArgs e)
 {
     if (this.DGDatos.CurrentRow != null)
     {
         try
         {
             Reserva aux = this.reservas.Buscar(Convert.ToInt64(this.DGDatos.CurrentRow.Cells["cIdElem"].Value.ToString()));
             if (aux != null)
             {
                 FrmReserva FrmRese = new FrmReserva(aux);
                 FrmRese.MdiParent    = this.MdiParent;
                 FrmRese.FormClosing += new FormClosingEventHandler(FrmRese_FormClosing);
                 FrmRese.Show();
             }
         }
         catch (Exception err)
         {
             SISTEMA.MENSAJES.FrmError FrmErr = new LFVBNewTPV.SISTEMA.MENSAJES.FrmError(err);
         }
     }
 }