Ejemplo n.º 1
0
        ////////////////////////////////////////////
        //////////////////////////////////druhy ukol
        ////////////////////////////////////////////

        /// <summary>
        /// Create new Meeting Reservation
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void NewPlanningButton_Click(object sender, RoutedEventArgs e)
        {
            if (listBoxDateValidation(MeetingRoomCombo, ReservationDatePicker))
            {
                PlanningForm planningForm = new PlanningForm();
                planningForm.Show();
                planningForm.TransferDataForReservation(MeetingRoomCombo, ReservationDatePicker);
            }
        }
Ejemplo n.º 2
0
 private void EditPlanningButton_Click(object sender, RoutedEventArgs e)
 {
     if (ReservationsListBox.SelectedItem != null)
     {
         _reservation = ReservationsListBox.SelectedItem as MeetingReservation;
         PlanningForm planningForm = new PlanningForm();
         planningForm.reservationForEdit(_reservation);
         planningForm.TransferDataForReservation(MeetingRoomCombo, ReservationDatePicker);
         planningForm.Show();
     }
 }