示例#1
0
        public void SetServiceForceGrade()
        {
            Applicant app    = (Applicant)cboApplicants.SelectedItem;
            MarkEntry mEntry = new MarkEntry(app);

            mEntry.ShowDialog();
        }
示例#2
0
        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();
                }
            }
        }