//functions internal void AddPermutation(string cleanPermutation, Doubly <TimeData> .Node refNode) { Permutations newPermutation = new Permutations(cleanPermutation, refNode); Permutations.Add(newPermutation); TotalPermutationTypesCount++; TotalQuantity++; }
public bool IsPermutationExist(string cleanPermutation, out Permutations foundItem) { Permutations temp = new Permutations(cleanPermutation, null); bool isFound = Permutations.Search(temp, out foundItem); if (isFound) { TotalQuantity++; foundItem.Count++; return(true); } return(false); }