public void ReadRow(DataStreamReader dataR, int[] filedIndex) { dataR.MoreFieldOnRow(); m_Id = dataR.ReadString(); if (dataR.MoreFieldOnRow() != -1) { m_Value = dataR.ReadString().Replace("\\n", "\n"); } else { m_Value = string.Empty; } }
public void ReadRow(DataStreamReader dataR, int[] filedIndex) { int col = 0; while (true) { col = dataR.MoreFieldOnRow(); if (col == -1) { break; } switch (filedIndex[col]) { case 0: m_Id = dataR.ReadInt(); break; case 1: m_Name = dataR.ReadString(); break; case 2: m_Description = dataR.ReadString(); break; default: break; } } }
public void ReadRow(DataStreamReader dataR, int[] filedIndex) { int col = 0; while (true) { col = dataR.MoreFieldOnRow(); if (col == -1) { break; } switch (filedIndex[col]) { case 0: m_Id = dataR.ReadInt(); break; case 1: m_GuideID = dataR.ReadInt(); break; case 2: m_Trigger = dataR.ReadString(); break; case 3: m_Command = dataR.ReadString(); break; case 4: m_CommonParam = dataR.ReadString(); break; case 5: m_KeyFrame = dataR.ReadInt(); break; case 6: m_Description = dataR.ReadString(); break; default: break; } } }