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();
            }
        }
Пример #2
0
        public ServerApplication()
        {
            PreferencesHelper.Initialize(new ServerApplicationPreferencesInfo());

            ShutdownMode = ShutdownMode.OnExplicitShutdown;
        }