Esempio n. 1
0
 private void loadDays()
 {
     EventHelper clientEvent = new EventHelper();
     DayList = clientEvent.GetDays(event_.EventID).ToList<EventDay>();
     clientEvent.Close();
     //cboSelectBookingDay.ItemsSource = DayList;
     //cboSelectBookingDay.SelectedIndex = 0;
 }
        private void cboEventList_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            if (cboEventList.SelectedIndex == -1)
            {
                return;
            }

            Events ev = (Events)cboEventList.SelectedItem;
            EventHelper clientEvent = new EventHelper();
            cboEventDay.ItemsSource = clientEvent.GetDays(ev.EventID);
            cboEventDay.SelectedIndex = 0;
            clientEvent.Close();
        }