/// <summary>
        /// Filters reservations by search parameters.
        /// </summary>
        private void FilterBySearchParameters()
        {
            switch (searchComboBox.SelectedIndex)
            {
            case 0:
            {
                FilteredReservations = ReservationProvider.GetReservationsByFirstName(searchTextBox.Text);
                RefreshGui(FilteredReservations);
                break;
            }

            case 1:
            {
                FilteredReservations = ReservationProvider.GetReservationsByLastName(searchTextBox.Text);
                RefreshGui(FilteredReservations);
                break;
            }

            case 2:
            {
                FilteredReservations = ReservationProvider.GetReservationsByEmail(searchTextBox.Text);
                RefreshGui(FilteredReservations);
                break;
            }

            case 3:
            {
                if (int.TryParse(searchTextBox.Text, out var roomNumber))
                {
                    FilteredReservations = ReservationProvider.GetReservationsByRoomNumber(roomNumber);
                    RefreshGui(FilteredReservations);
                }

                break;
            }
            }
        }