private void btnInvoice_Click(object sender, RoutedEventArgs e)
        {
            InvoiceWindow win = new InvoiceWindow(this, facade.getCarHireForBooking(b), facade.getGuestsForBooking(b).Count);

            win.Show();
            this.Hide();
        }
Beispiel #2
0
        private void btnTotalInvoice_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (lstBoxViewGuests.Items.Count < 1)
                {
                    throw new ArgumentException("You must add at least one guest");
                }

                InvoiceWindow invoice = new InvoiceWindow(this);

                invoice.Show();
                this.Hide();
            }
            catch (Exception ee)
            {
                MessageBox.Show(ee.Message, "Invoice");
            }
        }