示例#1
0
 private void btnModificar_Click(object sender, EventArgs e)
 {
     if (currentReserva != null)
     {
         AltaReserva form = new AltaReserva(currentReserva);
         form.ShowDialog();
         SetearReserva(ReservaService.GetReservaByCodigo(currentReserva.Codigo));
     }
     else
     {
         MessageBox.Show("Primero debe seleccionar una reserva.");
     }
 }
示例#2
0
        private void btnNueva_Click(object sender, EventArgs e)
        {
            AltaReserva form = new AltaReserva(null);

            form.ShowDialog();
        }