private void ComboDateBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { comboTypeBox.Items.Clear(); DateTime date = ConvertStringToDateTime(e.AddedItems[0].ToString()); SetTypeComboBox(cashbox.SelectPerformance(comboPerformanceBox.SelectedValue.ToString(), date)); }
private void Template() { cashbox.AddPerformance("Ромео и Джульета", new DateTime(2019, 6, 7, 19, 00, 00)); cashbox.AddPerformance("Снежная королева", new DateTime(2019, 6, 17, 19, 00, 00)); cashbox.AddPerformance("Щелкунчик", new DateTime(2019, 6, 17, 19, 00, 00)); cashbox.SaleTicket(new Client("Трофимов Е.В."), cashbox.SelectPerformance(0), typeTicket.balcony); cashbox.SaleTicket(new Client("Трофимов Е.В."), cashbox.SelectPerformance(0), typeTicket.lodge); cashbox.SaleTicket(new Client("Трофимов Е.В."), cashbox.SelectPerformance(0), typeTicket.lodge); cashbox.SaleTicket(new Client("Липский Д.С."), cashbox.SelectPerformance(1), typeTicket.lodge); cashbox.SaleTicket(new Client("Липский Д.С."), cashbox.SelectPerformance(1), typeTicket.lodge); cashbox.SaleTicket(new Client("Трофимов Е.В."), cashbox.SelectPerformance(1), typeTicket.balcony); }