예제 #1
0
        private void OnReportReservationButtonClick(object sender, EventArgs args)
        {
            string   name              = nameTextBox.Text;
            string   description       = descriptionTextBox.Text;
            int      facilityListIndex = facilityComboBox.SelectedIndex;
            DateTime start             = fromDatePicker.Value;
            DateTime end = toDatePicker.Value;

            ReservationRequestEventArgs eventArgs = new ReservationRequestEventArgs(name, description, facilityListIndex, start, end);

            ReservationRequest?.Invoke(sender, eventArgs);
        }