public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId) { if (((isReference == true) && ((expressionText == "ServiceArg") && (MainWorkFlow_TypedDataContext3.Validate(locations, true, 0) == true)))) { expressionId = 0; 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)) { MainWorkFlow_TypedDataContext3 refDataContext0 = new MainWorkFlow_TypedDataContext3(locations, true); return(refDataContext0.GetLocation <string>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set)); } 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 = MainWorkFlow_TypedDataContext3.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation); } if ((expressionId == 0)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = MainWorkFlow_TypedDataContext3.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1); if ((cachedCompiledDataContext[0] == null)) { cachedCompiledDataContext[0] = new MainWorkFlow_TypedDataContext3(locations, activityContext, true); } MainWorkFlow_TypedDataContext3 refDataContext0 = ((MainWorkFlow_TypedDataContext3)(cachedCompiledDataContext[0])); return(refDataContext0.GetLocation <string>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set, expressionId, this.rootActivity, activityContext)); } return(null); }