/// <summary> /// The implementation of the abstract function for this class. Used to convert old data to new data. /// </summary> public override void ExtractEmployees() { FullTimeEmployee employeeNew; foreach (CompanyAEmployee employee in CompanyAEmployees.Employees) { employeeNew = new FullTimeEmployee(); employeeNew.Name = employee.Name; employeeNew.EmployeeID = "a" + employee.ID; employeeNew.Note = employee.Notes; this.Employees.Add(employeeNew); } }
/// <summary> /// The implementation of the abstract function for this class. Used to convert old data to new data. /// </summary> public override void ExtractEmployees() { FullTimeEmployee employeeNew; foreach (CompEmployee employee in CompanyBEmployees.emp) { if (employee == null) { continue; } employeeNew = new FullTimeEmployee(); // Convert data for new system requirements employeeNew.Name = employee.FirstName + " " + employee.LastName; employeeNew.EmployeeID = "b000" + employee.BadgeID; employeeNew.Note = "New employee"; this.Employees.Add(employeeNew); } }