public GridDataHolder(BedRow row, int colindex, int rowindex, DataGridView dgv, DataLookupInfo lookupInfo, DataFormatSettings dataFormat) { m_row = row; m_colindex = colindex; m_rowindex = rowindex; m_dgv = dgv; m_lookupInfo = lookupInfo; m_convertor = new BedValueConvertor(dataFormat ?? new DataFormatSettings()); }
public BedTable(InMemoryTable table) { m_structure = new TableStructure(table.Structure); Rows = new BedRowCollection(this); foreach (var row in table.Rows) { Rows.AddInternal(new BedRow(this, row, BedRowState.Unchanged, m_structure)); } m_defConvertor = new BedValueConvertor(new DataFormatSettings()); }
public virtual string ReadHash(IBedValueReader reader, BedValueConvertor auxConv, BedValueHolder auxHolder) { switch (reader.GetFieldType()) { case TypeStorage.String: return(reader.GetString().ToLower()); case TypeStorage.ByteArray: { byte[] data = reader.GetByteArray(); if (data.Length == 32) { return(Encoding.UTF8.GetString(data)); } return(StringTool.EncodeHex(data).ToLower()); } } auxConv.ConvertValue(reader, TypeStorage.String, auxHolder); return(auxHolder.GetString()); }
public BedRecordAdapter() { m_convertor = new BedValueConvertor(new DataFormatSettings()); m_value = new BedValueHolder(); }
public BedTable(ITableStructure structure) { m_structure = new TableStructure(structure); Rows = new BedRowCollection(this); m_defConvertor = new BedValueConvertor(new DataFormatSettings()); }