private void button_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            if (SelectedEmployee != null)
            {
                SelectedTicket.SetEmployeeId(SelectedEmployee.Id);
                SelectedTicket.Update();
            }
            Window window1 = Window.GetWindow(this);

            if (window1 != null)
            {
                window1.Close();
            }
        }
Example #2
0
        private void TaxExemption()
        {
            string result =
                PosDialogWindow.PromptKeyboard(Types.Strings.EnterTaxExemptionId,
                                               SelectedTicket.TaxExemptId);

            if (result == null)
            {
                return;
            }
            if (String.IsNullOrEmpty(result))
            {
                result = null;
            }
            SelectedTicket.SetTaxExemptId(result);
            SelectedTicket.Update();
            // Update the tax on the payment control
            paymentControl.SelectedTicket = SelectedTicket;
        }