private static void Main() { try { DefaultLoggingConfiguration.Setup(); // Custom splash screen ApplicationSplashScreen splashScreen = null; if (IsOnlyInstance()) { var windowsSplashScreen = new SplashScreen("Resources/SplashScreen.png"); splashScreen = new ApplicationSplashScreen(windowsSplashScreen); splashScreen.Show(); } var startupInfo = new CustomControlsExamples.CustomApplicationStartupInfo(splashScreen); PreferencesHelper.Initialize(startupInfo.ApplicationInfo); ShellApplication.RunStandalone(startupInfo); } finally { DefaultLoggingConfiguration.Cleanup(); } }
public ServerApplication() { PreferencesHelper.Initialize(new ServerApplicationPreferencesInfo()); ShutdownMode = ShutdownMode.OnExplicitShutdown; }