示例#1
0
 private void AddCustomFieldObjects(CustomRowObject rowObject, int NumberOfObjects)
 {
     for (int i = 0; i < NumberOfObjects; i++)
     {
         rowObject.Fields.Add(CreateFieldObject());
     }
 }
 private void AddCustomFieldObjects(CustomRowObject rowObject, int NumberOfObjects)
 {
     for (int i = 0; i < NumberOfObjects; i++)
     {
         rowObject.Fields.Add(CreateFieldObject());
     }
 }
 private CustomRowObject CreateRow(bool AddField)
 {
     var customRow = new CustomRowObject();
     if (AddField)
         customRow.Fields.Add(CreateField());
     return customRow;
 }
 private CustomRowObject MockBasicCustomRowObject()
 {
     var customRowObject = new CustomRowObject();
     customRowObject.ParentRowId = "1";
     customRowObject.RowAction = RowAction.None;
     customRowObject.RowId = "1";
     return customRowObject;
 }
 public RowObject TransformToRowObject(CustomRowObject customRowObject)
 {
     var rowObject = new RowObject();
     rowObject.ParentRowId = customRowObject.ParentRowId;
     rowObject.RowId = customRowObject.RowId;
     rowObject.RowAction = customRowObject.RowAction == null ? null : customRowObject.RowAction.Value;
     rowObject.Fields = TransformCustomFields(customRowObject.Fields);
     return rowObject;
 }
 private CustomRowObject MockBasicCustomRowObject()
 {
     var rowObject = new CustomRowObject();
     rowObject.ParentRowId = "0";
     rowObject.RowId = "1";
     rowObject.RowType = RowType.Current;
     rowObject.RowAction = RowAction.None;
     return rowObject;
 }
示例#7
0
        private CustomRowObject MockBasicCustomRowObject()
        {
            var customRowObject = new CustomRowObject();

            customRowObject.ParentRowId = "1";
            customRowObject.RowAction   = RowAction.None;
            customRowObject.RowId       = "1";
            return(customRowObject);
        }
示例#8
0
        private CustomRowObject MockBasicCustomRowObject()
        {
            var rowObject = new CustomRowObject();

            rowObject.ParentRowId = "0";
            rowObject.RowId       = "1";
            rowObject.RowType     = RowType.Current;
            rowObject.RowAction   = RowAction.None;
            return(rowObject);
        }
 public CustomRowObject TransformToCustomRowObject(RowObject rowObject)
 {
     var CustomRowObject = new CustomRowObject();
     CustomRowObject.ParentRowId = rowObject.ParentRowId;
     CustomRowObject.RowAction = ConvertToRowAction(rowObject.RowAction);
     CustomRowObject.RowId = rowObject.RowId;
     CustomRowObject.RowType = GetRowType(rowObject);
     CustomRowObject.Fields = TransformFields(rowObject.Fields);
     return CustomRowObject;
 }
        private CustomRowObject CreateRow(bool AddField)
        {
            var customRow = new CustomRowObject();

            if (AddField)
            {
                customRow.Fields.Add(CreateField());
            }
            return(customRow);
        }
        public RowObject TransformToRowObject(CustomRowObject customRowObject)
        {
            var rowObject = new RowObject();

            rowObject.ParentRowId = customRowObject.ParentRowId;
            rowObject.RowId       = customRowObject.RowId;
            rowObject.RowAction   = customRowObject.RowAction == null ? null : customRowObject.RowAction.Value;
            rowObject.Fields      = TransformCustomFields(customRowObject.Fields);
            return(rowObject);
        }
        public CustomRowObject TransformToCustomRowObject(RowObject rowObject)
        {
            var CustomRowObject = new CustomRowObject();

            CustomRowObject.ParentRowId = rowObject.ParentRowId;
            CustomRowObject.RowAction   = ConvertToRowAction(rowObject.RowAction);
            CustomRowObject.RowId       = rowObject.RowId;
            CustomRowObject.RowType     = GetRowType(rowObject);
            CustomRowObject.Fields      = TransformFields(rowObject.Fields);
            return(CustomRowObject);
        }
 protected virtual RowObject TransformCustomRow(CustomRowObject customRow)
 {
     return new CustomRowObjectTransform().TransformToRowObject(customRow);
 }
示例#14
0
 protected virtual RowObject TransformCustomRow(CustomRowObject customRow)
 {
     return(new CustomRowObjectTransform().TransformToRowObject(customRow));
 }