コード例 #1
0
ファイル: Settings.cs プロジェクト: EarlBoss/picasastarter
        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);
        }
コード例 #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);
            }
        }