Example #1
0
 protected override bool OnLine(string[] Fields)
 {
     SuperActivity.RowData rowData = new SuperActivity.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.actid))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.id))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.childs))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.offset))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.icon))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[5]], ref rowData.name))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[6]], ref rowData.belong))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }
Example #2
0
 protected override void ReadLine(BinaryReader reader)
 {
     SuperActivity.RowData rowData = new SuperActivity.RowData();
     base.Read <uint>(reader, ref rowData.actid, CVSReader.uintParse);
     this.columnno = 0;
     base.Read <uint>(reader, ref rowData.id, CVSReader.uintParse);
     this.columnno = 1;
     base.ReadArray <string>(reader, ref rowData.childs, CVSReader.stringParse);
     this.columnno = 2;
     base.Read <uint>(reader, ref rowData.offset, CVSReader.uintParse);
     this.columnno = 3;
     base.Read <string>(reader, ref rowData.icon, CVSReader.stringParse);
     this.columnno = 4;
     base.Read <string>(reader, ref rowData.name, CVSReader.stringParse);
     this.columnno = 5;
     base.Read <uint>(reader, ref rowData.belong, CVSReader.uintParse);
     this.columnno = 6;
     this.Table.Add(rowData);
     this.columnno = -1;
 }