Esempio n. 1
0
        private void ReadChunks(IO.XmlElementStream s)
        {
            foreach (var n in s.ElementsByName(ECF.EcfChunk.kXmlElementStreamName))
            {
                var f = new EraFileEntryChunk();
                using (s.EnterCursorBookmark(n))
                {
                    f.Read(s, false);
                }

                mFiles.Add(f);
            }
        }
Esempio n. 2
0
        private void ReadLocalFiles(IO.XmlElementStream s)
        {
            foreach (var n in s.ElementsByName("file"))
            {
                using (s.EnterCursorBookmark(n))
                {
                    string file_name = null;
                    s.ReadAttribute("name", ref file_name);

                    string file_data = "";
                    s.ReadCursor(ref file_data);

                    if (!string.IsNullOrEmpty(file_name))
                    {
                        mLocalFiles[file_name] = file_data;
                    }
                }
            }
        }