/// /// ------------------------------------------------------------------------------------------------ /// Name RecordFromMapping /// /// <summary> Gets the record that is mapped by the record mapping. /// </summary> /// <param name="rMap"> The record mapping.</param> /// /// <remarks> /// </remarks> /// ------------------------------------------------------------------------------------------------ /// public SRiRecord RecordFromMapping(RecordMapping rMap) { if (rMap.Index >= 0 && rMap.Index < m_oRecordList.Count) { return(m_oRecordList[rMap.Index]); } else { return(null); } }
/// /// ------------------------------------------------------------------------------------------------ /// Name UpdateMappings /// /// <summary> Updates the mappings used for populating the main table view. /// </summary> /// <remarks> /// </remarks> /// ------------------------------------------------------------------------------------------------ /// private void UpdateMappings() { RecordMapping mapping; // m_oMappings = new List <RecordMapping>(); for (int i = 0; i < m_oRecordList.Count; i++) { mapping = new RecordMapping(m_oRecordList[i], i); if (mapping.Active.Count > 0) { m_oMappings.Add(mapping); } } // if (m_oMappings.Count > 0) { m_oMappings.Sort(new RecordMappingComparer()); } }
/// /// ------------------------------------------------------------------------------------------------ /// Name RecordIsSelected /// /// <summary> Checks if the record mapped in the record mapping is the currently selected record. /// </summary> /// <param name="rMap"> The record mapping.</param> /// /// <remarks> /// </remarks> /// ------------------------------------------------------------------------------------------------ /// public bool RecordIsSelected(RecordMapping rMap) { return(rMap.Index == m_nSelectedRecord); }