Ejemplo n.º 1
0
        public override void UpdateData(ResourceElement newResElem)
        {
            base.UpdateData(newResElem);

            var binData = (BinaryResourceData)newResElem.ResourceData;

            byte[] imageData;
            SerializedImageListStreamerUtils.GetImageData(this.GetModule(), binData.TypeName, binData.Data, out imageData);
            InitializeImageData(imageData);
        }
Ejemplo n.º 2
0
        public IResourceElementNode Create(ModuleDef module, ResourceElement resourceElement, ITreeNodeGroup treeNodeGroup)
        {
            var serializedData = resourceElement.ResourceData as BinaryResourceData;

            if (serializedData == null)
            {
                return(null);
            }

            byte[] imageData;
            if (SerializedImageListStreamerUtils.GetImageData(module, serializedData.TypeName, serializedData.Data, out imageData))
            {
                return(new SerializedImageListStreamerResourceElementNode(treeNodeGroup, resourceElement, imageData));
            }

            return(null);
        }