void TreeNodeCreated(object sender, TreeViewEventArgs e)
        {
            SolutionNode sn = e.Node as SolutionNode;

            if (sn != null)
            {
                OverlayIconManager.Enqueue(sn);
            }
            else
            {
                DirectoryNode dn = e.Node as DirectoryNode;
                if (dn != null)
                {
                    OverlayIconManager.Enqueue(dn);
                }
                else
                {
                    FileNode fn = e.Node as FileNode;
                    if (fn != null)
                    {
                        OverlayIconManager.Enqueue(fn);
                    }
                }
            }
        }
Beispiel #2
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);
			};
		}
Beispiel #3
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);
        }