示例#1
0
        internal override GatewayResult CreateDataControlViews(List <IDataSourceViewDefinition> dataControlViewsDefinitions)
        {
            GatewayResult result = new GatewayResult();

            foreach (var viewDefinition in dataControlViewsDefinitions)
            {
                RuntimeReadOnlyView dcView = TaskViewsBuilder.CreateDataControlSourceView(viewDefinition);

                //[MH 9-APR] This is the point where we should determine whether the linked variable is vector or not.

                result = this.TaskViews.AddDataControlView(dcView, new LocallyComputedDcValuesBuilder(dcView));

                if (!result.Success)
                {
                    break;
                }
            }

            return(result);
        }
示例#2
0
 internal void BuildViewsCollection(Task task)
 {
     TaskViews = TaskViewsBuilder.BuildViewsCollection(task);
     TaskViews.ApplySort(task.RuntimeSorts);
 }