public virtual void UpdateColors(ShadingStyle style) { IEnumerable <Renderable> renderables = MapObjects.GetAllRenderables(); foreach (Renderable r in renderables) { if (r.Selected) { r.SetColor(r.Colors[style].selected); } else { if (r.Tint != null) { r.SetColor(r.Tint.Value); } else { r.SetColor(r.Colors[style].deselected); } } } }