コード例 #1
0
ファイル: TfsManager.cs プロジェクト: chrfin/fdTFS
        /// <summary>
        /// Gets the specified paths.
        /// </summary>
        /// <param name="paths">The paths.</param>
        /// <remarks>Documented by CFI, 2011-01-07</remarks>
        internal void Get(List <string> paths)
        {
            CurrentWorkspace.Get(paths.ToArray(), VersionSpec.Latest, RecursionType.Full, GetOptions.GetAll);

            foreach (ITabbedDocument document in PluginBase.MainForm.Documents)
            {
                paths.ForEach(delegate(string path)
                {
                    if (document.FileName.StartsWith(path))
                    {
                        document.Reload(true);
                        return;
                    }
                });
            }
        }