예제 #1
0
        public int getLimGroupDayLim(LimitationGroup lg)
        {
            var x = dayLims.FirstOrDefault(item => item.g.Equals(lg) == true);

            if (x == null)
            {
                return(int.MaxValue);
            }
            return(x.cnt);
        }
예제 #2
0
 public LimitationGroupPair(Tuple <LimitationGroup, int> x)
 {
     this.g   = x.Item1;
     this.cnt = x.Item2;
 }
예제 #3
0
 public LimitationGroupPair(LimitationGroup g, int cnt)
 {
     this.g   = g;
     this.cnt = cnt;
 }