public static bool DeleteFromRestrictions(this NameParameterForAnalysis parameter) { if (!StaticData.ConditionsForParameterForAnalysis.ContainsKey(parameter)) { return(false); } StaticData.ConditionsForParameterForAnalysis.Remove(parameter); parameter.VerificateParameterForCurrentSystem(); return(true); }
public static void AddToRestrictions(this NameParameterForAnalysis parameter, ConditionType conditionType, double value) { StaticData.ConditionsForParameterForAnalysis.Add(parameter, new Condition(conditionType, value)); parameter.VerificateParameterForCurrentSystem(); }