public App() { SingleInstance = new SingleInstance("PEUNION_SINGLE_INSTANCE"); if (SingleInstance.CheckInstanceRunning()) { SingleInstance.SendActivationMessage(); Shutdown(); } else { ShutdownMode = ShutdownMode.OnMainWindowClose; new SplashScreen("Resources/Images/SplashScreen.png").Show(true, true); } SystemParametersHelper.Initialize(); }