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(); }
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); }
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(); }