Esempio 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);
 }
Esempio n. 2
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = Workflow1_TypedDataContext1_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext0 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext1 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext1.ValueType___Expr1Get());
     }
     return(null);
 }
Esempio n. 3
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.Location> locations)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((expressionId == 0))
     {
         Workflow1_TypedDataContext0_ForReadOnly valDataContext0 = new Workflow1_TypedDataContext0_ForReadOnly(locations, true);
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         Workflow1_TypedDataContext0_ForReadOnly valDataContext1 = new Workflow1_TypedDataContext0_ForReadOnly(locations, true);
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         Workflow1_TypedDataContext1_ForReadOnly valDataContext2 = new Workflow1_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         Workflow1_TypedDataContext1_ForReadOnly valDataContext3 = new Workflow1_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         Workflow1_TypedDataContext1 refDataContext4 = new Workflow1_TypedDataContext1(locations, true);
         return(refDataContext4.GetLocation <decimal>(refDataContext4.ValueType___Expr4Get, refDataContext4.ValueType___Expr4Set));
     }
     if ((expressionId == 5))
     {
         Workflow1_TypedDataContext1_ForReadOnly valDataContext5 = new Workflow1_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext5.ValueType___Expr5Get());
     }
     if ((expressionId == 6))
     {
         Workflow1_TypedDataContext1 refDataContext6 = new Workflow1_TypedDataContext1(locations, true);
         return(refDataContext6.GetLocation <int>(refDataContext6.ValueType___Expr6Get, refDataContext6.ValueType___Expr6Set));
     }
     if ((expressionId == 7))
     {
         Workflow1_TypedDataContext1_ForReadOnly valDataContext7 = new Workflow1_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext7.ValueType___Expr7Get());
     }
     if ((expressionId == 8))
     {
         Workflow1_TypedDataContext1_ForReadOnly valDataContext8 = new Workflow1_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext8.ValueType___Expr8Get());
     }
     return(null);
 }
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.Location> locations)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((expressionId == 0))
     {
         Workflow1_TypedDataContext1_ForReadOnly valDataContext0 = new Workflow1_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext0.ValueType___Expr0Get());
     }
     return(null);
 }
Esempio n. 5
0
 public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId)
 {
     if (((isReference == false) &&
          ((expressionText == "DateTime.Now.Hour >= 12") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 0;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "(DateTime.Now.Month % 12) / 4") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 1;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "\"Time: \" + DateTime.Now.TimeOfDay.ToString()") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 2;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "\"Date: \" + DateTime.Now.Date.ToShortDateString()") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 3;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "\"Today is: \" + DateTime.Now.ToString(\"dddd\")") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 4;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "DateTime.Now.Hour >= 18") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 5;
         return(true);
     }
     expressionId = -1;
     return(false);
 }
Esempio n. 6
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 != "varCandidate") ||
          (locationReferences[(offset + 3)].Type != typeof(Sample.VariableAndArgument.Person))))
     {
         return(false);
     }
     return(Workflow1_TypedDataContext1_ForReadOnly.Validate(locationReferences, false, offset));
 }
 public new static bool Validate(System.Collections.Generic.IList <System.Activities.LocationReference> locationReferences, bool validateLocationCount, int offset)
 {
     if (((validateLocationCount == true) &&
          (locationReferences.Count < 1)))
     {
         return(false);
     }
     if ((validateLocationCount == true))
     {
         offset = (locationReferences.Count - 1);
     }
     expectedLocationsCount = 1;
     if (((locationReferences[(offset + 0)].Name != "TempResult") ||
          (locationReferences[(offset + 0)].Type != typeof(int))))
     {
         return(false);
     }
     return(Workflow1_TypedDataContext1_ForReadOnly.Validate(locationReferences, false, offset));
 }
Esempio n. 8
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.Location> locations)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((expressionId == 0))
     {
         Workflow1_TypedDataContext1_ForReadOnly valDataContext0 = new Workflow1_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         Workflow1_TypedDataContext2 refDataContext1 = new Workflow1_TypedDataContext2(locations, true);
         return(refDataContext1.GetLocation <Sample.VariableAndArgument.Person>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set));
     }
     if ((expressionId == 2))
     {
         Workflow1_TypedDataContext2_ForReadOnly valDataContext2 = new Workflow1_TypedDataContext2_ForReadOnly(locations, true);
         return(valDataContext2.ValueType___Expr2Get());
     }
     return(null);
 }
Esempio n. 9
0
 public new static bool Validate(System.Collections.Generic.IList <System.Activities.LocationReference> locationReferences, bool validateLocationCount, int offset)
 {
     if (((validateLocationCount == true) &&
          (locationReferences.Count < 3)))
     {
         return(false);
     }
     if ((validateLocationCount == true))
     {
         offset = (locationReferences.Count - 3);
     }
     expectedLocationsCount = 3;
     if (((locationReferences[(offset + 1)].Name != "YesOrNo") ||
          (locationReferences[(offset + 1)].Type != typeof(string))))
     {
         return(false);
     }
     if (((locationReferences[(offset + 2)].Name != "DriveNames") ||
          (locationReferences[(offset + 2)].Type != typeof(string[]))))
     {
         return(false);
     }
     return(Workflow1_TypedDataContext1_ForReadOnly.Validate(locationReferences, false, offset));
 }
Esempio n. 10
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = Workflow1_TypedDataContext0_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext0_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow1_TypedDataContext0_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext0_ForReadOnly valDataContext0 = ((Workflow1_TypedDataContext0_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext0_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow1_TypedDataContext0_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext0_ForReadOnly valDataContext1 = ((Workflow1_TypedDataContext0_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext2 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext3 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[2] == null))
         {
             cachedCompiledDataContext[2] = new Workflow1_TypedDataContext1(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1 refDataContext4 = ((Workflow1_TypedDataContext1)(cachedCompiledDataContext[2]));
         return(refDataContext4.GetLocation <decimal>(refDataContext4.ValueType___Expr4Get, refDataContext4.ValueType___Expr4Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 5))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext5 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext5.ValueType___Expr5Get());
     }
     if ((expressionId == 6))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[2] == null))
         {
             cachedCompiledDataContext[2] = new Workflow1_TypedDataContext1(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1 refDataContext6 = ((Workflow1_TypedDataContext1)(cachedCompiledDataContext[2]));
         return(refDataContext6.GetLocation <int>(refDataContext6.ValueType___Expr6Get, refDataContext6.ValueType___Expr6Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 7))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext7 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext7.ValueType___Expr7Get());
     }
     if ((expressionId == 8))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext8 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext8.ValueType___Expr8Get());
     }
     return(null);
 }
Esempio n. 11
0
 public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId)
 {
     if (((isReference == false) &&
          ((expressionText == "new string[] { \"B Bytes\", \"KB Kilobytes\", \"MB Megabytes\", \"GB Gigabytes\", \"TB Ter" +
            "abytes\", \"PB Petabytes\", \"EB Exabytes\", \"ZB Zettabytes\", \"YB Yottabytes\", \"BB Br" +
            "ontobytes\" }") &&
           (Workflow1_TypedDataContext0_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 0;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "12345678") &&
           (Workflow1_TypedDataContext0_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 1;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "\"Input: \" + argInput.ToString()") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 2;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "argInput/1024") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 3;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "argInput") &&
           (Workflow1_TypedDataContext1.Validate(locations, true, 0) == true))))
     {
         expressionId = 4;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "count+1") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 5;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "count") &&
           (Workflow1_TypedDataContext1.Validate(locations, true, 0) == true))))
     {
         expressionId = 6;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "argInput > 1024") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 7;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "argInput.ToString(\"0.00\")+ unitName[count]") &&
           (Workflow1_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 8;
         return(true);
     }
     expressionId = -1;
     return(false);
 }
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList<System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext) {
     if ((this.rootActivity == null)) {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null)) {
         this.dataContextActivities = Workflow1_TypedDataContext1_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext0 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext0.ValueType___Expr0Get();
     }
     return null;
 }
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList<System.Activities.Location> locations) {
     if ((this.rootActivity == null)) {
         this.rootActivity = this;
     }
     if ((expressionId == 0)) {
         Workflow1_TypedDataContext1_ForReadOnly valDataContext0 = new Workflow1_TypedDataContext1_ForReadOnly(locations, true);
         return valDataContext0.ValueType___Expr0Get();
     }
     return null;
 }