Exemplo n.º 1
0
 private void PaymentDealer_Click(object sender, EventArgs e)
 {
     label11.Text = "Total Amount Paid = " + p1.GetDealer.TotalAMountPaid;
     label12.Text = "Remainig Amount to pay = " + p1.GetDealer.RemainingAmount;
     AmountPaymentMaskedTextBox.Clear();
     AmountPayment.Show();
     AmountPayment.BringToFront();
 }
Exemplo n.º 2
0
 private void AddToAccountsButton_Click(object sender, EventArgs e)
 {
     if (double.Parse(AmountPaymentMaskedTextBox.Text) <= p1.GetDealer.RemainingAmount)
     {
         p1.Payamount(double.Parse(AmountPaymentMaskedTextBox.Text));
     }
     else
     {
         MessageBox.Show("You have to pay only " + p1.GetDealer.RemainingAmount);
     }
     label11.Text = "Total Amount Paid = " + p1.GetDealer.TotalAMountPaid;
     label12.Text = "Remainig Amount to pay = " + p1.GetDealer.RemainingAmount;
     AmountPaymentMaskedTextBox.Clear();
 }