Exemplo n.º 1
0
        void TreeNodeCreated(object sender, TreeViewEventArgs e)
        {
            SolutionNode sn = e.Node as SolutionNode;

            if (sn != null)
            {
                if (CanBeVersionControlledDirectory(sn.Solution.Directory))
                {
                    OverlayIconManager.Enqueue(sn);
                }
            }
            else
            {
                DirectoryNode dn = e.Node as DirectoryNode;
                if (dn != null)
                {
                    if (CanBeVersionControlledDirectory(dn.Directory))
                    {
                        OverlayIconManager.Enqueue(dn);
                    }
                }
                else
                {
                    FileNode fn = e.Node as FileNode;
                    if (fn != null)
                    {
                        if (CanBeVersionControlledFile(fn.FileName))
                        {
                            OverlayIconManager.Enqueue(fn);
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
        void ClearStatusCacheAndEnqueueFile(string fileName)
        {
            OverlayIconManager.ClearStatusCache();

            ProjectBrowserPad pad = ProjectBrowserPad.Instance;

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

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