Example #1
0
 public void Add(ErrorCounts counts)
 {
     c*K      += counts.c*K;
     cTodo    += counts.cTodo;
     cWarning += counts.cWarning;
     cError   += counts.cError;
 }
Example #2
0
 public void Sub(ErrorCounts counts)
 {
     c*K      -= counts.c*K;
     cTodo    -= counts.cTodo;
     cWarning -= counts.cWarning;
     cError   -= counts.cError;
     if (c*K < 0 || cTodo < 0 || cWarning < 0 || cError < 0)
     {
         throw new Exception("Underflow");
     }
 }