private void Application_Startup(object sender, StartupEventArgs e) { var diConfiguration = new FireControlUnityConfiguration(); FireControlMappingConfiguration.CreateMappings(); var windowDisplayService = diConfiguration.WindowDisplayService(); try { windowDisplayService.ShowMainWindow(); } catch (Exception ex) { windowDisplayService.ShowError(ex); } }