Exemplo n.º 1
0
        private void btnStudentSearch_Click(object sender, EventArgs e)
        {
            //Try to get account number
            frmStudentSearch frmSelectUserPayment = new frmStudentSearch("paymentSearch");
            //Show window to search for students
            frmSelectUserPayment.ShowDialog();

            //If a student was selected, show student ID on textbox
            if (frmSelectUserPayment.studentID != null && frmSelectUserPayment.studentID != "")
            {
                txtbAccNum.Text = frmSelectUserPayment.studentID;
            }

            //Dispose of search window
            frmSelectUserPayment.Dispose();
        }