public void AddValueDependent(string dependent) { if (!ValueExpr.Contains(dependent)) { ValueExpr.Add(dependent); } }
public bool HasExpression(ExpressionType type) { if (type == ExpressionType.ValueExpression) { return(ValueExpr != null && !ValueExpr.IsEmpty()); } else if (type == ExpressionType.HideExpression) { return(HiddenExpr != null && !HiddenExpr.IsEmpty()); } else if (type == ExpressionType.DisableExpression) { return(DisableExpr != null && !DisableExpr.IsEmpty()); } else if (type == ExpressionType.HideExpression) { return(DefaultValueExpression != null && !DefaultValueExpression.IsEmpty()); } else { return(false); } }
public override int GetHashCode() { return((Price?.GetHashCode() ?? 0) ^ (Date?.GetHashCode() ?? 0) ^ (Tag?.GetHashCode() ?? 0) ^ (ValueExpr?.GetHashCode() ?? 0)); }