Exemplo n.º 1
0
        private void Terminate()
        {
            decimal fee = CalculatePremiumFee();

            if (fee > 0)
            {
                MessageBox.Show("Customer exceeded the MaxKM for these lease. Add a new payment for the premium fee");
                NewPayment newPayment = new NewPayment(lease.LeaseID.ToString());
                newPayment.contractDate.SelectedDate = lease.ContractDate;
                newPayment.amount_textBox.Text       = fee.ToString();
                newPayment.amount_textBox.IsEnabled  = false;
                newPayment.confirm_btn.Click        += Updates;
                newPayment.Show();
            }
            else
            {
                UpdateAfterTerminate();
            }
        }
Exemplo n.º 2
0
        private void MenuNewPayment_Click(object sender, RoutedEventArgs e)
        {
            NewPayment np = new NewPayment();

            np.Show();
        }