Exemplo n.º 1
0
 private void addpayButton_Click(object sender, EventArgs e)
 {
     Payment nPay = new Payment();
     nPay.LoadC(fnameBox.Text, lnameBox.Text, saddressBox.Text, caddressBox.Text, staddressBox.Text,
                     zaddressBox.Text, textBox2.Text);
     nPay.Show();
 }
Exemplo n.º 2
0
 //Edit Payment Info
 private void button5_Click(object sender, EventArgs e)
 {
     if (CustDBase.Instance.KnownCust.Count() > 0)
     {
         Payment pay = new Payment();
         pay.LoadC((Customer)custlistBox.SelectedItem);
         pay.Show();
     }
     else
         MessageBox.Show("There are no customers on file!");
 }