Ejemplo n.º 1
0
        private void Explorer_Click(object sender, RoutedEventArgs e)
        {
            var profiles = _rootDirectories.Select(em => em.Profile).Distinct().ToArray();

            ScriptRunner.RunScript(
                new ParameterDic()
            {
                { "ExplorerWidth", 500 },
                { "ExplorerHeight", 334 },
            },
                TestAppCommands.ExplorerNewMdiWindow(Container, profiles, _rootDirectories, "{Explorer}"));
            //new TestApp.Script.OpenInNewMdiWindowV1(Container, _initializer).Execute(new ParameterDic());
        }
Ejemplo n.º 2
0
 public static IScriptCommand ExplorerNewMdiWindow(WPF.MDI.MdiContainer container,
                                                   IProfile[] profiles, IEntryModel[] rootDirectories,
                                                   string explorerVariable = "{Explorer}", IScriptCommand nextCommand = null)
 {
     return(ScriptCommands.Assign(new Dictionary <string, object>()
     {
         { "{MdiContainer}", container },
         { "{Profiles}", profiles },
         { "{RootDirectories}", rootDirectories },
         { "{OnModelCreated}", ScriptCommands.RunSequence(null,
                                                          TestAppCommands.MdiExplorer_Initialize_Default,
                                                          UIScriptCommands.ExplorerAssignScriptParameters("{Explorer}", "{MdiContainer},{RootDirectories}")) },
         { "{OnViewAttached}", UIScriptCommands.ExplorerGotoStartupPathOrFirstRoot() }
     }, false,
                                  TestAppCommands.ExplorerNewMdiWindow("{MdiContainer}", "{WindowManager}", "{GlobalEvents}", "{Explorer}", nextCommand)));
 }