private void buttonAcceptPayment_Click(object sender, EventArgs e) { using (AcceptCustomerPaymentForm paymentForm = new AcceptCustomerPaymentForm()) { paymentForm.Customer = this.customer; if (paymentForm.ShowDialog() == DialogResult.OK) { this.ReloadData(); } } }
private void buttonAcceptPayment_Click( object sender, EventArgs e ) { using ( AcceptCustomerPaymentForm paymentForm = new AcceptCustomerPaymentForm() ) { paymentForm.Customer = this.customer; if ( paymentForm.ShowDialog() == DialogResult.OK ) { this.ReloadData(); } } }