Esempio n. 1
0
        public LightDataTableRow NewRow(CultureInfo cultureInfo = null)
        {
            var row = new LightDataTableRow(ColumnLength, Columns, ColumnsWithIndexKey, cultureInfo ?? Culture)
            {
                RoundingSettings = this.RoundingSettings
            };

            return(row);
        }
Esempio n. 2
0
        public LightDataTableRow NewRow(object[] items)
        {
            var row = new LightDataTableRow(ColumnLength, Columns, ColumnsWithIndexKey, Culture)
            {
                RoundingSettings = this.RoundingSettings,
                _itemArray       = items
            };

            return(row);
        }
Esempio n. 3
0
 internal void AddValue(object oldValue, object newValue, LightDataTableRow index)
 {
     if (oldValue != null && ContainValue(oldValue))
     {
         if (ContainValue(newValue))
         {
             return;
         }
         _savedIndexes.Remove(oldValue);
         _savedIndexes.Add(newValue, index);
     }
     else if (newValue != null && !ContainValue(newValue))
     {
         _savedIndexes.Add(newValue, index);
     }
 }