Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }