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(); }
//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!"); }