private void Add_Shows_Btn_Click(object sender, RoutedEventArgs e) { AddShowWindow addShowWindow = new AddShowWindow(); addShowWindow.Show(); addShowWindow.Closed += (s, eventarg) => { Shows = CircusInformation.GetShows(); Shows_ListView.ItemsSource = Shows; }; }
public OrderTicketsWindow() { InitializeComponent(); List <Show> shows = CircusInformation.GetShows(); Shows_ListView.ItemsSource = shows; List <int> quantity = new List <int> { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; //Quantity_ComboBox.ItemsSource = quantity; //Quantity_ComboBox.SelectionChanged += new SelectionChangedEventHandler(Quantity_ComboBox_SelectionChanged); }
public ShowsWindow() { InitializeComponent(); Shows = CircusInformation.GetShows(); Shows_ListView.ItemsSource = Shows; }