private void Button_Click(object sender, RoutedEventArgs e) { if (NoShow) { MessageBox.Show("No suitable Show Times", "Alert", MessageBoxButton.OK, MessageBoxImage.Information); return; } item.ShowTime = SOI[CMBShowsAvalible.SelectedIndex].DTShowTime; FilePusher.RemoveTicket(ShowIndex, TicketIndex); FilePusher.AddTicket(item); FilePusher.TotMessage.Content = "Today's Total: " + FilePusher.TotalShows.ToString(); this.Close(); }
private void BtnDelete_Click(object sender, RoutedEventArgs e) { FilePusher.RemoveTicket(CurrentShowDisplayed, (sender as Button).Tag as int?); LTotalTicks.Content = "Today's Total: " + FilePusher.TotalShows.ToString(); }