コード例 #1
0
 public void setupDirectoryControl(ascx_Directory directory, string folderToShow)
 {
     directory.simpleMode();
     directory._WatchFolder = true;
     directory.setMoveOnDrag(true);
     directory.openDirectory(folderToShow);
 }
コード例 #2
0
 public static ascx_Directory add_Directory(this Control control, string startDirectory)
 {
     return((ascx_Directory)control.invokeOnThread(
                () =>
     {
         var directory = new ascx_Directory();
         directory.Dock = DockStyle.Fill;
         //directory.simpleMode_withAddressBar();
         //directory.simpleMode();
         directory._ViewMode = ascx_Directory.ViewMode.Simple_With_LocationBar;
         directory.openDirectory(startDirectory);
         control.Controls.Add(directory);
         return directory;
     }));
 }
コード例 #3
0
        public static ascx_Directory add_Directory(this IStep step, string startDirectory)
        {
            var directory = new ascx_Directory();

            directory.Dock       = DockStyle.Fill;
            directory._HideFiles = true;
            directory._ViewMode  = ascx_Directory.ViewMode.Simple_With_LocationBar;
            directory.AllowDrop  = false;

            directory.openDirectory(startDirectory);
            directory.refreshDirectoryView();
            directory._WatchFolder = true;
            step.add_Control(directory);
            return(directory);
        }
コード例 #4
0
 public static ascx_Directory open(this ascx_Directory directory, string directoryToOpen)
 {
     directory.openDirectory(directoryToOpen);
     return(directory);
 }