コード例 #1
0
        public static bool DeleteFromRestrictions(this NameParameterForAnalysis parameter)
        {
            if (!StaticData.ConditionsForParameterForAnalysis.ContainsKey(parameter))
            {
                return(false);
            }

            StaticData.ConditionsForParameterForAnalysis.Remove(parameter);
            parameter.VerificateParameterForCurrentSystem();
            return(true);
        }
コード例 #2
0
 public static void AddToRestrictions(this NameParameterForAnalysis parameter, ConditionType conditionType, double value)
 {
     StaticData.ConditionsForParameterForAnalysis.Add(parameter, new Condition(conditionType, value));
     parameter.VerificateParameterForCurrentSystem();
 }