Beispiel #1
0
 public void AddRange(FieldStyleCollection fieValue)
 {
     for (int intCounter = 0; (intCounter < fieValue.Count); intCounter = (intCounter + 1))
     {
         this.Add(fieValue[intCounter]);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Get the styles through  the fieldname
        /// </summary>
        public GridStyleInfo GetCellStyle(string tableName, object primaryKey, string fieldName)
        {
            RecordFieldStylesCollection recordFieldStyles = TableRecordFieldStyles.GetRecordFieldStylesByTableName(tableName);

            if (recordFieldStyles != null)
            {
                FieldStyleCollection fieldStyles = recordFieldStyles.GetFieldStylesByRecordKey(primaryKey);
                if (fieldStyles != null)
                {
                    return(fieldStyles.GetStyleByFieldName(fieldName));
                }
            }
            return(null);
        }
Beispiel #3
0
        public FieldStyleCollection GetObject(object recordKey)
        {
            FieldStyleCollection value = GetFieldStylesByRecordKey(recordKey);

            if (value == null)
            {
                RecordFieldStyles obj = new RecordFieldStyles();
                obj.RecordKey = recordKey.ToString();
                value         = obj.FieldStyles;
                Add(obj);
            }

            return(value);
        }
Beispiel #4
0
 public FieldStyleEnumerator(FieldStyleCollection fieMappings)
 {
     this.iEnLocal = ((System.Collections.IEnumerable)(fieMappings));
     this.iEnBase  = iEnLocal.GetEnumerator();
 }
Beispiel #5
0
 public FieldStyleCollection(FieldStyleCollection fieValue)
 {
     this.AddRange(fieValue);
 }