MonoDevelop.VersionControl.TFS.GUI.VersionControl.SourceControlExplorerView.GetLatestVersion C# (CSharp) Method

GetLatestVersion() private method

private GetLatestVersion ( List items ) : void
items List
return void
        private void GetLatestVersion(List<ExtendedItem> items)
        {
            List<GetRequest> requests = new List<GetRequest>();
            foreach (var item in items)
            {
                RecursionType recursion = item.ItemType == ItemType.File ? RecursionType.None : RecursionType.Full;
                requests.Add(new GetRequest(item.ServerPath, recursion, VersionSpec.Latest));
            }
            using (var progress = VersionControlService.GetProgressMonitor("Get", VersionControlOperationType.Pull))
            {
                var option = GetOptions.None;
                progress.Log.WriteLine("Start downloading items. GetOption: " + option);
                foreach (var request in requests)
                {
                    progress.Log.WriteLine(request);
                }
                _currentWorkspace.Get(requests, option, progress);
                progress.ReportSuccess("Finish Downloading.");
            }
            RefreshList(items);
        }