상속: AvalonStudio.Controls.SplashScreen
예제 #1
0
        private static void Main(string[] args)
        {
            Configuration.EnableReleaseOnFinalizer = true;

            AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
            {
                var message = (e.ExceptionObject as Exception)?.Message;

                if (message != null)
                {
                    Console.WriteLine(message);
                }
            };

            if (args == null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            var builder = AppBuilder.Configure <App>();

            if (args.Length >= 1 && args[0] == "--skia")
            {
                builder.UseSkia();

                if (Platform.PlatformIdentifier == PlatformID.Win32NT)
                {
                    builder.UseWin32();
                }
                else
                {
                    builder.UseGtk();
                }
            }
            else
            {
                builder.UsePlatformDetect();
            }

            builder.SetupWithoutStarting();

            var splash = new BootScreen();

            splash.Show();

            builder.Instance.Run(splash);
        }
예제 #2
0
		private static void Main(string[] args)
		{
			Configuration.EnableReleaseOnFinalizer = true;

			AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
			{
				var message = (e.ExceptionObject as Exception)?.Message;

				if (message != null)
				{
					Console.WriteLine(message);
				}
			};

			if (args == null)
			{
				throw new ArgumentNullException(nameof(args));
			}

			var builder = AppBuilder.Configure<App>();

			if (args.Length >= 1 && args[0] == "--skia")
			{
				builder.UseSkia();
				
				if (Platform.PlatformIdentifier == PlatformID.Win32NT)
				{
					builder.UseWin32();
				}
				else
				{
					builder.UseGtk();
				}
			}
			else
			{
				builder.UsePlatformDetect();
			}

			builder.SetupWithoutStarting();

			var splash = new BootScreen();

			splash.Show();

			builder.Instance.Run(splash);
		}
예제 #3
0
        private static void Main(string[] args)
        {
            /*AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
             * {
             *      var message = (e.ExceptionObject as Exception)?.Message;
             *
             *      if (message != null)
             *      {
             *              Console.WriteLine(message);
             *      }
             * };*/

            if (args == null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            var builder = AppBuilder.Configure <App>();

            if (args.Length >= 1 && args[0] == "--skia")
            {
                builder.UseSkia();

                if (Platform.OSDescription == "Windows")
                {
                    builder.UseWin32();
                }
                else
                {
                    builder.UseGtk3();
                }
            }
            else
            {
                builder.UsePlatformDetect();
            }

            builder.SetupWithoutStarting();

            var splash = new BootScreen();

            splash.Show();

            builder.Instance.Run(splash);
        }