Esempio n. 1
0
        private void NewPayment_btn_Click(object sender, RoutedEventArgs e)
        {
            NewPayment pf = new NewPayment(leaseID_textbox.Text);

            pf.Title = "New Payment for LeaseID" + leaseID_textbox.Text;
            pf.contractDate.SelectedDate = this.contractDate.SelectedDate;
            pf.ShowDialog();
            LoadPaymentsList(paymentsSQLCommand);
        }
Esempio n. 2
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();
            }
        }
Esempio n. 3
0
        private void MenuNewPayment_Click(object sender, RoutedEventArgs e)
        {
            NewPayment np = new NewPayment();

            np.Show();
        }