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 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.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.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 < 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.Validate(locationReferences, false, offset)); }
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); }
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); }