예제 #1
0
        public static void StartUp(string[] args)
        {
            CoreApplication.InitMonoInternal();

            Application.Attribute = ApplicationAttribute.AA_EnableHighDpiScaling;

            var app = new Application(args);

            var mainWindow = new MyMainWindow();

//			mainWindow.FixedSize = new Size (1920 / 2, 1080 / 2);
//			mainWindow.FocusPolicy = FocusPolicy.StrongFocus;
            mainWindow.WindowTitle = "NNNN";
            mainWindow.Show();

            var splash = new SplashScreen(mainWindow);

            splash.Show();

//			splash.SetRange (0, 10000);
//			for (int i = 0; i < 10000; i++)
//			{
//				splash.SetValue (i);
//				Thread.Sleep (10);
//				Application.ProcessEvents ();
//			}
            app.Exec();
        }