public static int Main() { Initialize(); var app = new App(); app.InitializeComponent(); var wpfApp = new WpfApplication(app); SetupApplicationSettings(); InitializeApplicationEvents(); return wpfApp.Run(); }