public void AddValueDependent(string dependent)
 {
     if (!ValueExpr.Contains(dependent))
     {
         ValueExpr.Add(dependent);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     return((Price?.GetHashCode() ?? 0) ^ (Date?.GetHashCode() ?? 0) ^ (Tag?.GetHashCode() ?? 0) ^ (ValueExpr?.GetHashCode() ?? 0));
 }