Пример #1
0
 private static void UpdateAll(Action <OnlineItem> callback)
 {
     foreach (var item in VisualTreeHelperEx.GetAllOfType <OnlineItem>())
     {
         callback(item);
         item.Render();
     }
 }
Пример #2
0
 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);
     }
 }