示例#1
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.Location> locations)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((expressionId == 0))
     {
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext0 = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         RackRateStatus_TypedDataContext1 refDataContext1 = new RackRateStatus_TypedDataContext1(locations, true);
         return(refDataContext1.GetLocation <BrokerageOnline.TransferObjects.ViewAction>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set));
     }
     if ((expressionId == 2))
     {
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext2 = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext3 = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext4 = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext4.ValueType___Expr4Get());
     }
     if ((expressionId == 5))
     {
         RackRateStatus_TypedDataContext1 refDataContext5 = new RackRateStatus_TypedDataContext1(locations, true);
         return(refDataContext5.GetLocation <string>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set));
     }
     if ((expressionId == 6))
     {
         RackRateStatus_TypedDataContext1 refDataContext6 = new RackRateStatus_TypedDataContext1(locations, true);
         return(refDataContext6.GetLocation <string>(refDataContext6.ValueType___Expr6Get, refDataContext6.ValueType___Expr6Set));
     }
     if ((expressionId == 7))
     {
         RackRateStatus_TypedDataContext1 refDataContext7 = new RackRateStatus_TypedDataContext1(locations, true);
         return(refDataContext7.GetLocation <string>(refDataContext7.ValueType___Expr7Get, refDataContext7.ValueType___Expr7Set));
     }
     return(null);
 }
示例#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 = RackRateStatus_TypedDataContext1_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext0 = ((RackRateStatus_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RackRateStatus_TypedDataContext1(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1 refDataContext1 = ((RackRateStatus_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext1.GetLocation <BrokerageOnline.TransferObjects.ViewAction>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext2 = ((RackRateStatus_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext3 = ((RackRateStatus_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext4 = ((RackRateStatus_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext4.ValueType___Expr4Get());
     }
     if ((expressionId == 5))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RackRateStatus_TypedDataContext1(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1 refDataContext5 = ((RackRateStatus_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext5.GetLocation <string>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 6))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RackRateStatus_TypedDataContext1(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1 refDataContext6 = ((RackRateStatus_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext6.GetLocation <string>(refDataContext6.ValueType___Expr6Get, refDataContext6.ValueType___Expr6Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 7))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RackRateStatus_TypedDataContext1(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1 refDataContext7 = ((RackRateStatus_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext7.GetLocation <string>(refDataContext7.ValueType___Expr7Get, refDataContext7.ValueType___Expr7Set, expressionId, this.rootActivity, activityContext));
     }
     return(null);
 }