Пример #1
0
 private void AddToList(TotalsItem ti)
 {
     if (ti.Value != 0.0M || !FilterEmptyTotals)
     {
         alTotals.Add(ti);
     }
 }
Пример #2
0
        public int CompareTo(object obj)
        {
            TotalsItem ti = (TotalsItem)obj;

            if (this.Sort == ti.Sort)
            {
                return(String.Compare(Description, ti.Description, StringComparison.CurrentCultureIgnoreCase));
            }
            else
            {
                return((int)this.Sort - (int)ti.Sort);
            }
        }
Пример #3
0
 public void AddTotalsItem(TotalsItem ti)
 {
     ((List <TotalsItem>)Items).Add(ti);
 }