private static void AddImageToCache(ComponentHandle<ITestKind, TestKindTraits> handle) { var traits = handle.GetTraits(); if (traits.Icon == null) return; var image = new Icon(traits.Icon, 16, 16).ToBitmap(); imageCache.Add(traits.Name, image); }
private static void AddImageToCache(ComponentHandle <ITestKind, TestKindTraits> handle) { var traits = handle.GetTraits(); if (traits.Icon == null) { return; } var image = new Icon(traits.Icon, 16, 16).ToBitmap(); imageCache.Add(traits.Name, image); }