Ejemplo n.º 1
0
 public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId)
 {
     if (((isReference == false) &&
          ((expressionText == "argHeight > 5.60") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 0;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "varCandidate") &&
           (Workflow1_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 1;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "varCandidate.Name") &&
           (Workflow1_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 2;
         return(true);
     }
     expressionId = -1;
     return(false);
 }
Ejemplo n.º 2
0
 public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId)
 {
     if (((isReference == false) &&
          ((expressionText == "\"Hello \" + UserName") &&
           (Workflow1_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 0;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "YesOrNo") &&
           (Workflow1_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 1;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "YesOrNo.ToUpper() == \"Y\"") &&
           (Workflow1_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 2;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "new Exception(\"User said no\");") &&
           (Workflow1_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 3;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "DriveNames") &&
           (Workflow1_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 4;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "item") &&
           (Workflow1_TypedDataContext3_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 5;
         return(true);
     }
     expressionId = -1;
     return(false);
 }
Ejemplo n.º 3
0
 public new static bool Validate(System.Collections.Generic.IList <System.Activities.LocationReference> locationReferences, bool validateLocationCount, int offset)
 {
     if (((validateLocationCount == true) &&
          (locationReferences.Count < 4)))
     {
         return(false);
     }
     if ((validateLocationCount == true))
     {
         offset = (locationReferences.Count - 4);
     }
     expectedLocationsCount = 4;
     if (((locationReferences[(offset + 3)].Name != "item") ||
          (locationReferences[(offset + 3)].Type != typeof(string))))
     {
         return(false);
     }
     return(Workflow1_TypedDataContext2.Validate(locationReferences, false, offset));
 }