Ejemplo n.º 1
0
        public async Task InitializeViewAttachedAsync(IExplorerViewModel evm)
        {
            evm.RootModels = RootModels;
            //Initializers.Add(ExplorerInitializers.StartupDirectory(RootModels.FirstOrDefault()));
            //Initializers.EnsureOneStartupDirectoryOnly();
            if (!Initializers.Any(i => i is StartupDirInitializer))
            {
                var firstDir = RootModels.FirstOrDefault();
                if (firstDir != null)
                {
                    await evm.GoAsync(firstDir);
                }
            }

            await Initializers.InitalizeAsync(evm);
        }