示例#1
0
 public void HideShortcutsAndXRefs(bool hideShortcuts, bool hideXrefs, bool hideDocShortcuts)
 {
     if (myFTV != null)
     {
         myFTV.HideShortcutsAndXRefs(hideShortcuts, hideXrefs, hideDocShortcuts);
     }
 }
示例#2
0
        public void LoadRoot(atriumManager atmng, int rootFileId, bool hideShortcuts, bool hideXRefs, bool hideDocShorcuts)
        {
            //should only be called once
            //subsequent calls should use reloadroot

            //this.ShowFileNumber = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowFileNumber, true);
            //this.ShowOnlyOpenFiles = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowOpenFiles, false);
            //this.HideXrefs = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowXrefs, false);


            myFTV = new FileTreeView(atmng, tvFiles, ucFileContextMenu1);
            ucFileContextMenu1.LoadLabels();
            myFTV.ShowContextMenu    = showContextMenu;
            ucFileContextMenu1.Ftv   = myFTV;
            myFTV.FileSelected      += new LawMate.BrowseEventHandler(myFTV_FileSelected);
            myFTV.NodeDoubleClicked += new TreeDoubleClickEventHandler(myFTV_NodeDoubleClicked);
            myFTV.HideShortcutsAndXRefs(hideShortcuts, hideXRefs, hideDocShorcuts);
            myFTV.LoadRoot(rootFileId, false);
            RootFileId = rootFileId;

            this.ShowFileNumber    = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowFileNumber, true);
            this.ShowOnlyOpenFiles = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowOpenFiles, false);
            this.HideXrefs         = atmng.OfficeMng.GetOfficerPrefs().GetPref(OfficerPrefsBE.FTVShowXrefs, false);


            if (tvFiles.Nodes.Count == 1)
            {
                rootHasChildren = false;
            }
        }