private void InitializeIconRegistry () { _iconRegistry = new NBTExplorer.Mac.IconRegistry(); _iconRegistry.DefaultIcon = NSImage.ImageNamed("question-white.png"); _iconRegistry.Register(typeof(TagByteDataNode), NSImage.ImageNamed("document-attribute-b.png")); _iconRegistry.Register(typeof(TagShortDataNode), NSImage.ImageNamed("document-attribute-s.png")); _iconRegistry.Register(typeof(TagIntDataNode), NSImage.ImageNamed("document-attribute-i.png")); _iconRegistry.Register(typeof(TagLongDataNode), NSImage.ImageNamed("document-attribute-l.png")); _iconRegistry.Register(typeof(TagFloatDataNode), NSImage.ImageNamed("document-attribute-f.png")); _iconRegistry.Register(typeof(TagDoubleDataNode), NSImage.ImageNamed("document-attribute-d.png")); _iconRegistry.Register(typeof(TagByteArrayDataNode), NSImage.ImageNamed("edit-code.png")); _iconRegistry.Register(typeof(TagStringDataNode), NSImage.ImageNamed("edit-small-caps.png")); _iconRegistry.Register(typeof(TagListDataNode), NSImage.ImageNamed("edit-list.png")); _iconRegistry.Register(typeof(TagCompoundDataNode), NSImage.ImageNamed("box.png")); _iconRegistry.Register(typeof(RegionChunkDataNode), NSImage.ImageNamed("wooden-box.png")); _iconRegistry.Register(typeof(DirectoryDataNode), NSImage.ImageNamed("folder-open")); _iconRegistry.Register(typeof(RegionFileDataNode), NSImage.ImageNamed("block.png")); _iconRegistry.Register(typeof(CubicRegionDataNode), NSImage.ImageNamed("block.png")); _iconRegistry.Register(typeof(NbtFileDataNode), NSImage.ImageNamed("wooden-box.png")); _iconRegistry.Register(typeof(TagIntArrayDataNode), NSImage.ImageNamed("edit-code-i.png")); }
private void InitializeIconRegistry() { _iconRegistry = new NBTExplorer.Mac.IconRegistry(); _iconRegistry.DefaultIcon = NSImage.ImageNamed("question-white.png"); _iconRegistry.Register(typeof(TagByteDataNode), NSImage.ImageNamed("document-attribute-b.png")); _iconRegistry.Register(typeof(TagShortDataNode), NSImage.ImageNamed("document-attribute-s.png")); _iconRegistry.Register(typeof(TagIntDataNode), NSImage.ImageNamed("document-attribute-i.png")); _iconRegistry.Register(typeof(TagLongDataNode), NSImage.ImageNamed("document-attribute-l.png")); _iconRegistry.Register(typeof(TagFloatDataNode), NSImage.ImageNamed("document-attribute-f.png")); _iconRegistry.Register(typeof(TagDoubleDataNode), NSImage.ImageNamed("document-attribute-d.png")); _iconRegistry.Register(typeof(TagByteArrayDataNode), NSImage.ImageNamed("edit-code.png")); _iconRegistry.Register(typeof(TagStringDataNode), NSImage.ImageNamed("edit-small-caps.png")); _iconRegistry.Register(typeof(TagListDataNode), NSImage.ImageNamed("edit-list.png")); _iconRegistry.Register(typeof(TagCompoundDataNode), NSImage.ImageNamed("box.png")); _iconRegistry.Register(typeof(RegionChunkDataNode), NSImage.ImageNamed("wooden-box.png")); _iconRegistry.Register(typeof(DirectoryDataNode), NSImage.ImageNamed("folder-open")); _iconRegistry.Register(typeof(RegionFileDataNode), NSImage.ImageNamed("block.png")); _iconRegistry.Register(typeof(CubicRegionDataNode), NSImage.ImageNamed("block.png")); _iconRegistry.Register(typeof(NbtFileDataNode), NSImage.ImageNamed("wooden-box.png")); _iconRegistry.Register(typeof(TagIntArrayDataNode), NSImage.ImageNamed("edit-code-i.png")); }