public static int Main() { Initialize(); var app = new App(); app.InitializeComponent(); var wpfApp = new WpfApplication(app); SetupApplicationSettings(); InitializeApplicationEvents(); return wpfApp.Run(); }
/// <summary> /// Initializes a new instance of the SingleInstanceApplicationWrapper class /// </summary> /// <param name="app">The reference to the WPF application instance</param> /// <param name="isSingleInstance">Set to true to make the application a single instance /// application</param> public SingleInstanceApplicationWrapper(WpfApplication app, bool isSingleInstance) { _app = app; IsSingleInstance = isSingleInstance; }