Ejemplo n.º 1
0
 public int AddCount(Engine.PrintPairingsAction action, int delta)
 {
     if (!this.BatchCounts.ContainsKey(action))
     {
         this.BatchCounts.Add(action, 0);
     }
     this.BatchCounts[action] = Math.Max(0, this.BatchCounts[action] + delta);
     if (action == Engine.PrintPairingsAction.ResultSlips)
     {
         this.BatchCounts[action] = Math.Min(1, this.BatchCounts[action]);
     }
     return(this.BatchCounts[action]);
 }
Ejemplo n.º 2
0
 public int GetCount(Engine.PrintPairingsAction action)
 {
     return(this.BatchCounts.ContainsKey(action) ? this.BatchCounts[action] : 0);
 }