Esempio n. 1
0
        private void OnStartUpDirectoryChanged(StartDir newVal)
        {
            if (Root != null)
            {
                ClearTree();
            }
            CShItem special;

            special                 = ExpTreeLib.CShItem.GetCShItem((ShellDll.CSIDL)(int)(m_StartUpDirectory));
            Root                    = new TreeNode(special.DisplayName);
            Root.ImageIndex         = SystemImageListManager.GetIconIndex(special, false, false);
            Root.SelectedImageIndex = Root.ImageIndex;
            Root.Tag                = special;
            BuildTree(special.GetDirectories(true));
            tv1.Nodes.Add(Root);
            Root.Expand();
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FileMask.Length != 0)
            {
                hash ^= FileMask.GetHashCode();
            }
            if (StartDir.Length != 0)
            {
                hash ^= StartDir.GetHashCode();
            }
            if (Recursive != false)
            {
                hash ^= Recursive.GetHashCode();
            }
            if (IgnoreErrors != false)
            {
                hash ^= IgnoreErrors.GetHashCode();
            }
            return(hash);
        }
Esempio n. 3
0
 private void OnStartUpDirectoryChanged(StartDir newVal)
 {
     if (Root != null)
     {
         ClearTree();
     }
     CShItem special;
     special = ExpTreeLib.CShItem.GetCShItem((ShellDll.CSIDL) (int)(m_StartUpDirectory));
     Root = new TreeNode(special.DisplayName);
     Root.ImageIndex = SystemImageListManager.GetIconIndex(special, false, false);
     Root.SelectedImageIndex = Root.ImageIndex;
     Root.Tag = special;
     BuildTree(special.GetDirectories(true));
     tv1.Nodes.Add(Root);
     Root.Expand();
 }