示例#1
0
 public TaxFilter add(TaxFilterItem filter)
 {
     if (filter != null)
     {
         items.Add(filter);
     }
     return(this);
 }
示例#2
0
 // ukloni jednu filter-definiciju (ako se sadrzi u skupu)
 public void remove(TaxFilterItem filterItem)
 {
     if (filterItem == null)
     {
         return;
     }
     for (int i = 0; i < items.Count; i++)
     {
         if (filterItem.Equals(items[i]))
         {
             items.RemoveAt(i);
             return;
         }
     }
 }
示例#3
0
 public TaxFilterItem(TaxFilterItem other) : this(other.Name, other.Relation, other.Value)
 {
 }
示例#4
0
 // ---------------------------------------------------------------------------------
 // Metode za postavljanje novog filtera
 // ---------------------------------------------------------------------------------
 public void Set(TaxFilterItem filter)
 {
     Clear();
     add(filter);
 }