예제 #1
0
 private void metroButton1_Click(object sender, EventArgs e)
 {
     using (frmEnrollmentProgress frm = new frmEnrollmentProgress(0))
     {
         frm.CurrentEmployeeLoggedIn = CurrentEmployeeLoggedIn;
         frm.ShowDialog();
     }
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmEnrollmentProgress frm = new frmEnrollmentProgress(Convert.ToInt32(txtEnrollmentIDForInProgreesEnrollment.Text));

            Employee CurrentEmployeeLoggedIn = null;

            //Passes the employee object of the currentlly loggin
            frm.CurrentEmployeeLoggedIn = CurrentEmployeeLoggedIn;
            //Sets the parameters for the for to load the correct enrollments
            frm.CurrentEquiryID           = Convert.ToInt32(txtEquriyIDForInprogressEnrollment.Text);
            frm.CurrentSelectedDepartment = (Common.Enum.EnumDepartments)(cboDepartmentsForInProgressEnrollment.SelectedValue);

            frm.ShowDialog();
        }