private void btnStudentIDLookup_Click(object sender, EventArgs e) { using (frmStudentLookup studentLookup = new frmStudentLookup(txtStudentNo.Text)) { studentLookup.ShowDialog(); txtStudentNo.Text = studentLookup.GetCustomerNumber(); } }
private void btnStudentIDLookup_Click(object sender, EventArgs e) { using (frmStudentLookup studentLookup = new frmStudentLookup(txtStudentNo.Text)) { studentLookup.ShowDialog(); txtStudentNo.Text = studentLookup.GetCustomerNumber(); } }
private void btnStudentIDLookup_Click(object sender, EventArgs e) { if (txtAssessmentNo.Text.Trim().Length > 0) { using (frmStudentLookup studentLookup = new frmStudentLookup(txtStudentID.Text)) { studentLookup.ShowDialog(); studentID = studentLookup.GetCustomerNumber(); } txtStudentID.Text = studentID; assess(); } else { Prompt.ShowError("Please enter a document number."); txtAssessmentNo.Focus(); } }
private void btnStudentIDLookup_Click(object sender, EventArgs e) { if (txtAssessmentNo.Text.Trim().Length > 0) { using (frmStudentLookup studentLookup = new frmStudentLookup(txtStudentID.Text)) { studentLookup.ShowDialog(); studentID = studentLookup.GetCustomerNumber(); } txtStudentID.Text = studentID; assess(); } else { Prompt.ShowError("Please enter a document number."); txtAssessmentNo.Focus(); } }