Exemplo n.º 1
0
        private void ViewPaymentForm()
        {
            DialogResult dr = MessageBox.Show("Student has been successfully enrolled. Would you like to add payment for student balance?", "Payment", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dr == DialogResult.Yes)
            {
                FrmPayment frmPayment = new FrmPayment(this.RecordNo);
                frmPayment.ShowDialog(this);
            }
        }
        private void btnPayBalance_Click(object sender, EventArgs e)
        {
            FrmPayment frmPayment = new FrmPayment(this.StudentRecordNo);

            DialogResult dr = frmPayment.ShowDialog();

            if (dr == DialogResult.OK)
            {
                ViewPayment();
            }
        }