Example #1
0
        public void AppendField(string lpszName, bool descending = false)
        {
            IndexFieldDefInfo fieldInfo = new IndexFieldDefInfo(lpszName, descending);

            m_IndexFields.Add(fieldInfo);
            m_nFields++;
        }
Example #2
0
        public void ReNameColumn(string oldColumnName, string newColumnName)
        {
            IndexFieldDefInfo indexField = m_IndexFields.SingleOrDefault((f) => (f.m_strName.CompareTo(oldColumnName) == 0));

            if (indexField != null)
            {
                indexField.m_strName = newColumnName;
            }
        }
Example #3
0
        public object Clone()
        {
            IndexFieldDefInfo other = (IndexFieldDefInfo)this.MemberwiseClone();

            other.m_strName     = this.m_strName;
            other.m_bDescending = this.m_bDescending;

            return(other);
        }
Example #4
0
        public void AppendTargetField(string lpszName, bool descending = false)
        {
            IndexFieldDefInfo fieldInfo = new IndexFieldDefInfo(lpszName, descending);

            CloneIndexFieldDefInfo fieldClone = new CloneIndexFieldDefInfo(null, fieldInfo);

            m_IndexFields.Add(fieldClone);

            m_nFields++;
        }
Example #5
0
 public CloneIndexFieldDefInfo(IndexFieldDefInfo sourceField, IndexFieldDefInfo targetField)
 {
     m_source = null;
     m_target = null;
     if (sourceField != null)
     {
         m_source = (IndexFieldDefInfo)sourceField.Clone();
     }
     if (targetField != null)
     {
         m_target = (IndexFieldDefInfo)targetField.Clone();
     }
 }
Example #6
0
 public CloneIndexFieldDefInfo(IndexFieldDefInfo fieldInfo)
 {
     m_source = (IndexFieldDefInfo)fieldInfo.Clone();
     m_target = (IndexFieldDefInfo)fieldInfo.Clone();
 }