public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId) { if (((isReference == false) && ((expressionText == "_handle") && (TrainingWorkflowService_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true)))) { expressionId = 0; return(true); } if (((isReference == false) && ((expressionText == "_handle") && (TrainingWorkflowService_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true)))) { expressionId = 1; return(true); } if (((isReference == false) && ((expressionText == "_handle") && (TrainingWorkflowService_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true)))) { expressionId = 2; return(true); } if (((isReference == false) && ((expressionText == "_handle") && (TrainingWorkflowService_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true)))) { expressionId = 3; return(true); } if (((isReference == false) && ((expressionText == "new TimeSpan(0,2,0)") && (TrainingWorkflowService_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true)))) { expressionId = 4; return(true); } if (((isReference == false) && ((expressionText == "_trainingRequest") && (TrainingWorkflowService_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true)))) { expressionId = 5; return(true); } expressionId = -1; return(false); }
public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.Location> locations) { if ((this.rootActivity == null)) { this.rootActivity = this; } if ((expressionId == 0)) { TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext0 = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, true); return(valDataContext0.ValueType___Expr0Get()); } if ((expressionId == 1)) { TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext1 = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, true); return(valDataContext1.ValueType___Expr1Get()); } if ((expressionId == 2)) { TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext2 = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, true); return(valDataContext2.ValueType___Expr2Get()); } if ((expressionId == 3)) { TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext3 = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, true); return(valDataContext3.ValueType___Expr3Get()); } if ((expressionId == 4)) { TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext4 = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, true); return(valDataContext4.ValueType___Expr4Get()); } if ((expressionId == 5)) { TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext5 = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, true); return(valDataContext5.ValueType___Expr5Get()); } return(null); }
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 = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation); } if ((expressionId == 0)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1); if ((cachedCompiledDataContext[0] == null)) { cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true); } TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext0 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0])); return(valDataContext0.ValueType___Expr0Get()); } if ((expressionId == 1)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1); if ((cachedCompiledDataContext[0] == null)) { cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true); } TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext1 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0])); return(valDataContext1.ValueType___Expr1Get()); } if ((expressionId == 2)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1); if ((cachedCompiledDataContext[0] == null)) { cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true); } TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext2 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0])); return(valDataContext2.ValueType___Expr2Get()); } if ((expressionId == 3)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1); if ((cachedCompiledDataContext[0] == null)) { cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true); } TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext3 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0])); return(valDataContext3.ValueType___Expr3Get()); } if ((expressionId == 4)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1); if ((cachedCompiledDataContext[0] == null)) { cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true); } TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext4 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0])); return(valDataContext4.ValueType___Expr4Get()); } if ((expressionId == 5)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1); if ((cachedCompiledDataContext[0] == null)) { cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true); } TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext5 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0])); return(valDataContext5.ValueType___Expr5Get()); } return(null); }