/// <summary> /// Load the Bootstraper once the user is authenticated /// </summary> private void StartupContainer() { Application.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown; Splash splash = new Splash(); splash.DataContext = new SplashModel(); splash.Show(); //Carga la configuracion del usuario validado LoadConfiguration(); Application.Current.MainWindow = null; Application.Current.ShutdownMode = ShutdownMode.OnMainWindowClose; Bootstrapper bootstrapper = new Bootstrapper(); bootstrapper.Run(); //IShellPresenter shellApplication = bootstrapper.Container.Resolve<IShellPresenter>(); //IModuleEnumerator moduleEnumerator = bootstrapper.Container.Resolve<IModuleEnumerator>(); //ModuleInfo[] moduleInfo = moduleEnumerator.GetStartupLoadedModules(); ////Hay un solo Modulo, y para ese Modulo se debe Depurar el Menu //foreach (ModuleInfo item in moduleInfo) // shellApplication.Shell.Model.AddModule(item); splash.Close(); }
private bool? LogonActive() { Splash splash = new Splash(); splash.DataContext = new SplashModel(); splash.Show(); Application.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown; LogOnScreen logon = new LogOnScreen(); #if DEBUG logon.HintVisible = true; #endif splash.Close(); return logon.ShowDialog(); }