示例#1
0
文件: Program.cs 项目: Gitvalt/Demo5
 private static void Officeadd(string name, List<Employee> officeemplist, Employee you)
 {
     /*
     1. Name of the office you are being assinged to.
     2. List of employees in office
     3. List of employees in company
     4. New employee
     */
     you.Work_office = name;
     officeemplist.Add(you);            
     return;
 }
示例#2
0
文件: Program.cs 项目: Gitvalt/Demo5
 private static void ADDtoA(string name, List<Employee> officeemplist, Employee you, List<Employee> wholecompemp, Company j)
 {
     Companyadd(j, wholecompemp, you);
     Officeadd(name,officeemplist,you);
     return;
 }
示例#3
0
文件: Program.cs 项目: Gitvalt/Demo5
 private static void Companyadd(Company j, List<Employee> x, Employee y)
 {
     x.Add(y);
     y.Employer = j.Company_name;
     return;
 }