private void ShowMenu_Click(object sender, RoutedEventArgs e) { ShowsWindow showsWindow = new ShowsWindow(); showsWindow.Show(); this.Close(); }
public OrderTicketsForAShowWindow(ShowsWindow owner) { InitializeComponent(); this.Owner = owner; DataContext = owner.Shows_ListView.SelectedItem; SelectedShow = (Show)owner.Shows_ListView.SelectedItem; this.Title = "Tickets for " + SelectedShow.Name + " :"; ShowName_Label.Content = SelectedShow.Name; ShowDate_Label.Content = SelectedShow.Date.ToString("MM/dd/yyyy"); ShowLocation_Label.Content = SelectedShow.Location; Price_TextBlock.Text = SelectedShow.Price.ToString(); Description_TextBlock.Text = SelectedShow.Descritpion; 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); }