示例#1
0
 public static void MainForNode() {
     SetupRegistry();
     SetupAssemblyLoader();
     VisualExtensions.Waiter = TaskExt.WaitAndUnwrapException;
     SetupLogging();
     new AssemblyHandler().Register();
     HandlePorts();
     //HandleSquirrel(arguments);
     InstallFlash();
     _bs = new AppBootstrapper(new Container(), Locator.CurrentMutable);
     _bs.Startup();
 }
示例#2
0
        protected override void OnStartup(StartupEventArgs e) {
            base.OnStartup(e);

            _bootstrapper = new AppBootstrapper(new Container(), Locator.CurrentMutable);
            // TODO: In command mode perhaps we shouldnt even run a WpfApp instance or ??
            if (Entrypoint.CommandMode)
                RunCommands();
            else {
                _bootstrapper.Startup();
                CreateMainWindow();
                _bootstrapper.AfterWindow();
            }
        }