Пример #1
0
        // Token: 0x06006D74 RID: 28020 RVA: 0x001F6C54 File Offset: 0x001F4E54
        private static void UpdateHighContrast()
        {
            object _lock = HighContrastHelper.__lock;

            lock (_lock)
            {
                int count = HighContrastHelper.__highContrastCallbackList.Count;
                int i     = 0;
                int num   = 0;
                while (i < count)
                {
                    WeakReference weakReference = HighContrastHelper.__highContrastCallbackList[num];
                    if (weakReference.IsAlive)
                    {
                        HighContrastCallback highContrastCallback = weakReference.Target as HighContrastCallback;
                        if (highContrastCallback.Dispatcher != null)
                        {
                            highContrastCallback.Dispatcher.BeginInvoke(DispatcherPriority.Background, new HighContrastHelper.UpdateHighContrastCallback(HighContrastHelper.OnUpdateHighContrast), highContrastCallback);
                        }
                        else
                        {
                            HighContrastHelper.OnUpdateHighContrast(highContrastCallback);
                        }
                        num++;
                    }
                    else
                    {
                        HighContrastHelper.__highContrastCallbackList.RemoveAt(num);
                    }
                    i++;
                }
                HighContrastHelper.__increaseCount = 0;
            }
        }
Пример #2
0
 // Token: 0x06006D73 RID: 28019 RVA: 0x001F6C4C File Offset: 0x001F4E4C
 internal static void OnSettingChanged()
 {
     HighContrastHelper.UpdateHighContrast();
 }