Example #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();
        }
Example #2
0
 private void mbtnStudentSearch_Click(object sender, EventArgs e)
 {
     if (frmStudentSearch == null || frmStudentSearch.Visible == false)
     {
         frmStudentSearch = new frmStudentSearch("normalSearch");
         frmStudentSearch.MdiParent = this;
         frmStudentSearch.Show();
     }
 }