/// <summary> /// Set the root path of this folder tree. Inializes all internal data and redisplays. /// </summary> /// <param name="rootPathIn"></param> public void SetRootPath(string rootPathIn) { using (new WaitCursor()) { // Use the correct spelling for the root directory name: DirectoryInfo dirInfo = new DirectoryInfo(rootPathIn); string rootPath = dirInfo.FullName; // Store it in the text box if that is empty: if (this.folderTextBox.Text.Length == 0) { this.folderTextBox.Text = rootPath; } FolderItem newRootFolder = new FolderItem(null, rootPath, DateTime.Now); newRootFolder.Fill(rootPath, true); this.rootFolder = newRootFolder; this.currentFolder = this.RootFolder; RedisplayFolders(); // MessageBox.Show("There are currently " + FileSystemItem.ImageList.Images.Count.ToString() + " images in the system image list"); } }