예제 #1
0
            /// <summary>
            /// Initializes a new instance of the <see cref="SplitReflexive"/> class.
            /// </summary>
            /// <param name="sr">The sr.</param>
            /// <remarks></remarks>
            public SplitReflexive(SplitReflexive sr)
            {
                inchunknumber  = sr.inchunknumber;
                ChunkResources = new List <Meta.Item>(sr.ChunkResources.Count);
                for (int count = 0; count < ChunkResources.Capacity; count++)
                {
                    ChunkResources.Add(new SplitIdent());
                    this.chunkcount                   = sr.chunkcount;
                    this.chunksize                    = sr.chunksize;
                    this.pointstotagname              = sr.pointstotagname;
                    this.pointstoTagIndex             = sr.pointstoTagIndex;
                    this.pointstotagtype              = sr.pointstotagtype;
                    ChunkResources[count].child       = sr.ChunkResources[count].child;
                    ChunkResources[count].description = sr.ChunkResources[count].description;
                    ChunkResources[count].intag       = sr.ChunkResources[count].intag;
                    ChunkResources[count].intagname   = sr.ChunkResources[count].intagname;
                    ChunkResources[count].intagtype   = sr.ChunkResources[count].intagtype;
                    ChunkResources[count].mapOffset   = sr.ChunkResources[count].mapOffset;
                    ChunkResources[count].offset      = sr.ChunkResources[count].offset;
                    ChunkResources[count].parent      = sr.ChunkResources[count].parent;
                    ChunkResources[count].sibling     = sr.ChunkResources[count].sibling;
                    ChunkResources[count].type        = sr.ChunkResources[count].type;
                }

                if (sr.Chunks.Count != 0)
                {
                    MessageBox.Show("sr.Chunks == " + sr.Chunks.Count + " -> location METASPLITTER.CS: Line 65");
                }

                Chunks          = new List <SplitReflexive>(sr.Chunks);
                realtranslation = sr.realtranslation;
                realTagIndex    = sr.realTagIndex;
                MS = sr.MS;
                splitReflexiveType = sr.splitReflexiveType;
                label = sr.label;
            }
예제 #2
0
            /// <summary>
            /// Initializes a new instance of the <see cref="SplitReflexive"/> class.
            /// </summary>
            /// <param name="sr">The sr.</param>
            /// <remarks></remarks>
            public SplitReflexive(SplitReflexive sr)
            {
                inchunknumber = sr.inchunknumber;
                ChunkResources = new List<Meta.Item>(sr.ChunkResources.Count);
                for (int count = 0; count < ChunkResources.Capacity; count++)
                {
                    ChunkResources.Add(new SplitIdent());
                    this.chunkcount = sr.chunkcount;
                    this.chunksize = sr.chunksize;
                    this.pointstotagname = sr.pointstotagname;
                    this.pointstoTagIndex = sr.pointstoTagIndex;
                    this.pointstotagtype = sr.pointstotagtype;
                    ChunkResources[count].child = sr.ChunkResources[count].child;
                    ChunkResources[count].description = sr.ChunkResources[count].description;
                    ChunkResources[count].intag = sr.ChunkResources[count].intag;
                    ChunkResources[count].intagname = sr.ChunkResources[count].intagname;
                    ChunkResources[count].intagtype = sr.ChunkResources[count].intagtype;
                    ChunkResources[count].mapOffset = sr.ChunkResources[count].mapOffset;
                    ChunkResources[count].offset = sr.ChunkResources[count].offset;
                    ChunkResources[count].parent = sr.ChunkResources[count].parent;
                    ChunkResources[count].sibling = sr.ChunkResources[count].sibling;
                    ChunkResources[count].type = sr.ChunkResources[count].type;
                }

                if (sr.Chunks.Count != 0)
                {
                    MessageBox.Show("sr.Chunks == " + sr.Chunks.Count + " -> location METASPLITTER.CS: Line 65");
                }

                Chunks = new List<SplitReflexive>(sr.Chunks);
                realtranslation = sr.realtranslation;
                realTagIndex = sr.realTagIndex;
                MS = sr.MS;
                splitReflexiveType = sr.splitReflexiveType;
                label = sr.label;
            }