Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
            }
        }