internal static void RefreshAll() { lock (switches) { for (int i = 0; i < switches.Count; i++) { Switch swtch = ((Switch)switches[i].Target); if (swtch != null) { swtch.Refresh(); } } } }
internal static void RefreshAll() { lock (switches) { _pruneCachedSwitches(); for (int i = 0; i < switches.Count; i++) { Switch target = (Switch)switches[i].Target; if (target != null) { target.Refresh(); } } } }