예제 #1
0
        /// <summary>
        /// Adds instructions to adjust another table on client-side
        /// </summary>
        /// <typeparam name="T2"></typeparam>
        /// <param name="tableId">Another table Id. It equals to desired table's root element id without leading hash</param>
        /// <param name="otherTableAdjustments">Operations on other table's adjustments list</param>
        public void AdjustAnotherTable <T2>(string tableId, Action <AdjustmentDataWrapper <T2> > otherTableAdjustments)
        {
            if (!_result.OtherTablesAdjustments.ContainsKey(tableId))
            {
                _result.OtherTablesAdjustments[tableId] = new AdjustmentData();
            }
            AdjustmentDataWrapper <T2> adj = new AdjustmentDataWrapper <T2>(_result.OtherTablesAdjustments[tableId]);

            otherTableAdjustments(adj);
        }
예제 #2
0
 /// <summary>
 /// Constructs new edition result wrapper from existing edition result
 /// </summary>
 /// <param name="result"></param>
 public EditionResultWrapper(EditionResult result)
 {
     _result     = result;
     Adjustments = new AdjustmentDataWrapper <T>(_result.TableAdjustments);
 }