示例#1
0
		Action AfterCommand(string nodeFileName, AbstractProjectBrowserTreeNode node)
		{
			return delegate {
				SD.MainThread.VerifyAccess();
				// and then refresh the project browser:
			//////////	TFSStatusCache.ClearCachedStatus(nodeFileName);
				OverlayIconManager.EnqueueRecursive(node);
				OverlayIconManager.EnqueueParents(node);
			};
		}
示例#2
0
        public static async void UpdateStatusCacheAndEnqueueFile(string fileName)
        {
            var item = GetTfsItem(fileName);

            if (item != null)
            {
                await UpdatePendingChanges(item.Workspace);
            }
            ProjectBrowserPad pad = ProjectBrowserPad.Instance;

            if (pad == null)
            {
                return;
            }
            FileNode node = pad.ProjectBrowserControl.FindFileNode(fileName);

            if (node == null)
            {
                return;
            }
            OverlayIconManager.EnqueueParents(node);
        }