public void InitProcList(List <LabClient> clients) { procList = new List <CompAndProcesses>(); foreach (var client in clients) { var ComProc = new CompAndProcesses(); ComProc.computer = client; procList.Add(ComProc); } }
public void InitProcList(List <LabClient> clients) { this.procList = new List <CompAndProcesses>(); foreach (LabClient client in clients) { CompAndProcesses ComProc = new CompAndProcesses(); ComProc.computer = client; ComProc.processes = new HashSet <string>(); this.procList.Add(ComProc); } }