Exemple #1
0
        public App()
        {
            FieldInfo colorCacheField = typeof(SystemColors).GetField("_colorCache", BindingFlags.Static | BindingFlags.NonPublic);

            Color[] _colorCache = (Color[])colorCacheField.GetValue(typeof(SystemColors));
            _colorCache[14] = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF);

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            UI.Services.ServiceInjector.InjectServices();

            CoCHelper.Initialize();
        }