private static void UpdateAll(Action <OnlineItem> callback) { foreach (var item in VisualTreeHelperEx.GetAllOfType <OnlineItem>()) { callback(item); item.Render(); } }
private static void OnUpdate(object sender, EventArgs args) { Cache.Clear(); if (!SettingsHolder.Content.MarkKunosContent) { return; } foreach (var image in VisualTreeHelperEx.GetAllOfType <CarIcon>()) { image.OnCarChanged(image.Car); } }