public static DirectoryViewer add_Directory(this IStep step, string startDirectory) { var directory = new DirectoryViewer(); directory.Dock = DockStyle.Fill; directory._HideFiles = true; directory._ViewMode = DirectoryViewer.ViewMode.Simple_With_LocationBar; directory.AllowDrop = false; directory.openDirectory(startDirectory); directory.refreshDirectoryView(); directory._WatchFolder = true; step.add_Control(directory); return(directory); }
public static DirectoryViewer open(this DirectoryViewer directory, string directoryToOpen) { directory.openDirectory(directoryToOpen); return(directory); }