/***************/ /* Constructor */ /***************/ public AMDFileWrapper(string text, AMDFile res) : base(text, res, SupportedFileType.AMDFile, true) { m_canExport = false; m_canReplace = false; InitializeContextMenuStrip(); }
/*********************************/ /* Base wrapper method overrides */ /*********************************/ internal override void RebuildWrappedObject() { var archive = new AMDFile(); foreach (ResourceWrapper node in Nodes) { var chunk = node.WrappedObject as AMDChunk; archive.Chunks.Add(chunk); } m_wrappedObject = archive; m_isDirty = false; }