Пример #1
0
 public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId)
 {
     if (((isReference == true) &&
          ((expressionText == "Attempts") &&
           (RandomLooper_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 0;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "new System.Random().Next(1, 100)") &&
           (RandomLooper_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 1;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "RandomNumber") &&
           (RandomLooper_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 2;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "RandomNumber<95") &&
           (RandomLooper_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 3;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "\"Se han repetido: \"+Attempts+\" veces\"") &&
           (RandomLooper_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 4;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "Attempts+1") &&
           (RandomLooper_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 5;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "Attempts") &&
           (RandomLooper_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 6;
         return(true);
     }
     expressionId = -1;
     return(false);
 }