예제 #1
0
 private int[] EmployeeIds()
 {
     if (CausedByEmployees.Count() != 0)
     {
         int size = CausedByEmployees.Count();
         EmpIds = new int[size];
         for (int i = 0; i < EmpIds.Length; i++)
         {
             EmpIds[i] = CausedByEmployees[i].Id;
         }
     }
     return(EmpIds);
 }
예제 #2
0
 private void AddCausedByEmployees(Employee employee)
 {
     if (CausedByEmployees.Count() == 0)
     {
         CausedByEmployees.Add(employee);
     }
     else
     {
         if (!CausedByEmployees.Contains(employee))
         {
             CausedByEmployees.Add(employee);
         }
     }
 }