private void ButtonViewEmployee_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(selectedEmployeeId))
            {
                MessageBox.Show("Please select employee");
            }
            else
            {
                EducationCollection  selectedEduList   = new EducationCollection();
                ExperienceCollection selectedExpList   = new ExperienceCollection();
                TrainingCollection   selectedTrainList = new TrainingCollection();

                var vEmpItem   = new EmployeeItem();
                var vEduList   = new List <EducationItem>();
                var vExpList   = new List <ExperienceItem>();
                var vTrainList = new List <TrainingItem>();
                vEmpItem   = empCollection.Where(t => t._EMP_NO.Equals(selectedEmployeeId)).FirstOrDefault();
                vEduList   = selectedEduList.RetreiveEmpEducation(vEmpItem._EMP_NO);
                vExpList   = selectedExpList.RetreiveEmpExperience(vEmpItem._EMP_NO);
                vTrainList = selectedTrainList.RetreiveEmpTraining(vEmpItem._EMP_NO);
                ViewEmployeeDetails viewEmp = new ViewEmployeeDetails(vEmpItem, vEduList, vExpList, vTrainList);
                EmployeeManagement.mEmpTransitioner.Items.Add(viewEmp);
                EmployeeManagement.mEmpTransitioner.SelectedIndex = 1;
                GetAllEmployees();
            }
        }
Beispiel #2
0
        private void ButtonViewEmployee_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var vEmpItem = new EmployeeItem();

            vEmpItem = empCollection.Where(t => t._EMP_NO.Equals(selectedEmployeeId)).FirstOrDefault();
            ViewEmployeeDetails viewEmp = new ViewEmployeeDetails(vEmpItem);

            EmployeeManagement.mEmpTransitioner.Items.Add(viewEmp);
            EmployeeManagement.mEmpTransitioner.SelectedIndex = 1;
            GetAllEmployees();
        }