Example #1
0
 public string GetRedResult()
 {
     if (RedCondition != null && RedCondition.IsValid())
     {
         return(RedCondition.GetResult(Area.ConnectionString));
     }
     else
     {
         throw new DomainException("Condition is not valid");
     }
 }
Example #2
0
 public bool IsRedOn()
 {
     return(RedCondition.Eval(Area.ConnectionString));
 }
Example #3
0
 public bool IsValid()
 {
     return(Id != null && Name != null && GreenCondition != null && YellowCondition != null &&
            RedCondition != null && GreenCondition.IsValid() &&
            YellowCondition.IsValid() && RedCondition.IsValid());
 }