Example #1
0
 public static IScriptCommand ExplorerNewWindow(IProfile[] profiles, IEntryModel[] rootDirectories,
                                                string explorerVariable = "{Explorer}", IScriptCommand nextCommand = null)
 {
     return(ScriptCommands.Assign(new Dictionary <string, object>()
     {
         { "{Profiles}", profiles },
         { "{RootDirectories}", rootDirectories },
         { "{OnModelCreated}", IOInitializeHelpers.Explorer_Initialize_Default },
         { "{OnViewAttached}", UIScriptCommands.ExplorerGotoStartupPathOrFirstRoot() }
     }, false,
                                  UIScriptCommands.ExplorerNewWindow("{OnModelCreated}", "{OnViewAttached}", "{WindowManager}",
                                                                     "{GlobalEvents}", explorerVariable, nextCommand)));
 }
Example #2
0
 public static IScriptCommand FileSave(
     string filterString           = "All files (*.*)|*.*",
     string selectionPathsVariable = "{Selection}",
     IScriptCommand nextCommand    = null, IScriptCommand cancelCommand = null)
 {
     return(ScriptCommands.Assign(new Dictionary <string, object>()
     {
         { "{EnableDrag}", false },
         { "{EnableDrop}", false },
         { "{FilterString}", filterString },
         { "{EnableMultiSelect}", false },
         { "{FileListNewWindowCommand}", NullScriptCommand.Instance },
         { "{OnModelCreated}", IOInitializeHelpers.Explorer_Initialize_Default },
         { "{OnViewAttached}", UIScriptCommands.ExplorerGotoStartupPathOrFirstRoot() }
     }, false,
                                  UIScriptCommands.ExplorerPick(ExplorerMode.FileSave, "{OnModelCreated}", "{OnViewAttached}", "{WindowManager}",
                                                                "{GlobalEvents}", null, selectionPathsVariable, nextCommand, cancelCommand)));
 }
Example #3
0
 public static IScriptCommand DirectoryPick(IProfile[] profiles, IEntryModel[] rootDirectories,
                                            string selectionVariable   = "{Selection}", string selectionPathVariable = "{SelectionPaths}",
                                            IScriptCommand nextCommand = null, IScriptCommand cancelCommand          = null)
 {
     return(ScriptCommands.Assign(new Dictionary <string, object>()
     {
         { "{Profiles}", profiles },
         { "{RootDirectories}", rootDirectories },
         { "{EnableDrag}", false },
         { "{EnableDrop}", false },
         { "{EnableMultiSelect}", false },
         { "{FileListNewWindowCommand}", NullScriptCommand.Instance },
         { "{OnModelCreated}", IOInitializeHelpers.Explorer_Initialize_Default },
         { "{OnViewAttached}", UIScriptCommands.ExplorerGotoStartupPathOrFirstRoot() }
     }, false,
                                  UIScriptCommands.ExplorerPick(ExplorerMode.DirectoryOpen, "{OnModelCreated}", "{OnViewAttached}", "{WindowManager}",
                                                                "{GlobalEvents}", selectionVariable, selectionPathVariable, nextCommand, cancelCommand)));
 }