public void SetPath(PathOnComputer path) { bool found = false; foreach (PathOnComputer curPath in Paths) { if (curPath.ComputerName == path.ComputerName) { curPath.Path = path.Path; found = true; break; } } if (found != true) Paths.Add(path); }
public void SetPath(PathOnComputer path) { bool found = false; foreach (PathOnComputer curPath in Paths) { if (curPath.ComputerName == path.ComputerName) { curPath.Path = path.Path; found = true; break; } } if (found != true) { Paths.Add(path); } }