コード例 #1
0
        public bool DeleteClaim(int claimID)
        {
            ClaimContents claim = GetClaimByClaimID(claimID);

            if (claim == null)
            {
                return(false);
            }

            _listOfClaimsQ.Dequeue();
            int originalNumberOfClaims = _listOfClaimsQ.Count;

            if (originalNumberOfClaims > _listOfClaimsQ.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
 public void AddClaimToQue(ClaimContents claim)
 {
     _listOfClaimsQ.Enqueue(claim);
 }