public bool ClearAlgorithm(string algoId) { AlgorithmDescription algorithmDescription = null; foreach (var algo in AssignedAlgorithmDescriptionMap) { if (algo.Key.Id == algoId && algo.Value) { algorithmDescription = algo.Key; } } if (algorithmDescription != null) { AssignedAlgorithmDescriptionMap[algorithmDescription] = false; } else { return(false); } return(true); }
public void SetAlgorithmActive(AlgorithmDescription algorithmDescription) { AssignedAlgorithmDescriptionMap[algorithmDescription] = true; }