Example #1
0
 public MainForm()
 {
     InitializeComponent();
     customizeDatePicker();
     customizeTrackBar();
     service = new TicketingService(new ShowDbRepository(), new TicketDbRepository());
     initializeModel();
 }
 public Ticketing()
 {
     InitializeComponent();
     _ticketingService = new TicketingService(new TicketDBRepository(), new ShowDBRepository());
     initData();
 }
        private void ShowPaymentsForOrder(TicketingService.Contracts.Order order)
        {
            if (order == null)
                lstPayments.ItemsSource = null;
            else
            {
                PaymentServiceReference.IPaymentService proxy = new PaymentServiceReference.PaymentServiceClient();
                lstPayments.ItemsSource = proxy.FindPayments(
                   new PaymentCriteria() { OrderID = order.ID });
            }

        }