protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); Bootstrapper = new Bootstrapper(); Bootstrapper.Run(); }
protected override void OnExit(ExitEventArgs e) { if (Bootstrapper != null) { Bootstrapper.Dispose(); Bootstrapper = null; } base.OnExit(e); }