public void SetServiceForceGrade() { Applicant app = (Applicant)cboApplicants.SelectedItem; MarkEntry mEntry = new MarkEntry(app); mEntry.ShowDialog(); }
private void btnEnrol_Click(object sender, EventArgs e) { Applicant tempApp = null; if (cboForceServices.SelectedIndex == -1 || cboApplicants.SelectedIndex == -1) { MessageBox.Show("You must first select the forceService and applicant"); DisplayAll(forceServiceList); DisplayAll(applicantList); } else { foreach (Applicant app in applicantList.Applicant) { if (app.Display("A") == cboApplicants.SelectedText) { tempApp = app; } MarkEntry mk = new MarkEntry(tempApp); mk.ShowDialog(); } } }