Exemplo n.º 1
0
 protected override void ReadLine(BinaryReader reader)
 {
     QuickReplyTable.RowData rowData = new QuickReplyTable.RowData();
     base.Read <int>(reader, ref rowData.ID, CVSReader.intParse);
     this.columnno = 0;
     base.Read <int>(reader, ref rowData.Type, CVSReader.intParse);
     this.columnno = 1;
     base.Read <string>(reader, ref rowData.Content, CVSReader.stringParse);
     this.columnno = 2;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
Exemplo n.º 2
0
 protected override bool OnLine(string[] Fields)
 {
     QuickReplyTable.RowData rowData = new QuickReplyTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.ID))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.Type))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.Content))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }