BelhardTraining.LessonThreading.App.OnStartup C# (CSharp) Метод

OnStartup() защищенный Метод

protected OnStartup ( System.Windows.StartupEventArgs e ) : void
e System.Windows.StartupEventArgs
Результат void
        protected override void OnStartup(StartupEventArgs e)
        {
            NativeHelper.DisableWindowsErrorReporting();

            //Type vectorType = typeof(Vector2).Assembly.GetType("System.Numerics.Vector", true);
            //bool isHardwareAccelerated = (bool)vectorType.GetProperty("IsHardwareAccelerated", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.GetProperty).GetValue(null);
            //if (!isHardwareAccelerated)
            //{
            //	//MessageBox.Show("Аппаратное ускорение не может использоваться на данном комьютере.", "Уведомление",
            //	//	MessageBoxButton.OK, MessageBoxImage.Information);
            //}

            //base.OnStartup(e);
        }