예제 #1
0
 /***************/
 /* Constructor */
 /***************/
 public AMDFileWrapper(string text, AMDFile res) 
     : base(text, res, SupportedFileType.AMDFile, true)
 {
     m_canExport = false;
     m_canReplace = false;
     InitializeContextMenuStrip();
 }
예제 #2
0
        /*********************************/
        /* 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;
        }