public void SendStyle(EStyle Style) { StatusIconProvider?.StyleChanged(Style); if (!AssetCache.HasAsset(Style, EAsset.MenuIcon)) { Image newAsset = MenuItem.GetIcon(Style); AssetCache.RegisterAsset(Style, EAsset.MenuIcon, newAsset); pbIcon.Image = newAsset; } else { pbIcon.Image = AssetCache.GetAsset(Style, EAsset.MenuIcon); } }