private void btnAvailability_Click(object sender, EventArgs e)
        {
            var form = new NewReservationFrm(dtpCheckin.Value.Date, dtpCheckout.Value.Date, (short)nudApartments.Value, (short)nudKids.Value, (short)nudAdults.Value);

            form.Show();
            this.Close();
        }
Ejemplo n.º 2
0
 private void SelectGuestFrm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (this.Guest == null)
     {
         var form = new NewReservationFrm(Cin, Cout, Apartments, Kids, Adult);
         form.Show();
     }
     else
     {
         var form = new NewReservationFrm(Cin, Cout, Apartments, Kids, Adult, Guest);
         form.Show();
     }
 }
Ejemplo n.º 3
0
        private void SelectRoomFrm_FormClosed(object sender, FormClosedEventArgs e)
        {
            var form = new NewReservationFrm(this.Cin, this.Cout, this.Apartments, this.Kids, this.Adult);

            form.Show();
        }