Exemplo n.º 1
0
 public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId)
 {
     if (((isReference == true) &&
          ((expressionText == "user") &&
           (LoginActivity_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 0;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "userName") &&
           (LoginActivity_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 1;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "user != null") &&
           (LoginActivity_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 2;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "user.password.Equals(password)") &&
           (LoginActivity_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 3;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "wasSuccesfullLogin") &&
           (LoginActivity_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 4;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "wasSuccesfullLogin") &&
           (LoginActivity_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 5;
         return(true);
     }
     expressionId = -1;
     return(false);
 }