Represents the RowWrapper object that is used To specify the location for a Row or set of Rows.
Esempio n. 1
0
            /// <summary>
            /// Builds the RowWrapper.
            /// </summary>
            /// <returns> the row wrapper </returns>
            public virtual RowWrapper Build()
            {
                if (toTop == null && toBottom == null && parentId == null && siblingId == null)
                {
                    throw new InvalidOperationException("One of the following must be defined to move a row: toTop, " +
                                                        "toBottom, parentId, siblingId.");
                }

                RowWrapper rowWrapper = new RowWrapper();

                rowWrapper.toTop     = toTop;
                rowWrapper.toBottom  = toBottom;
                rowWrapper.parentId  = parentId;
                rowWrapper.siblingId = siblingId;
                return(rowWrapper);
            }
Esempio n. 2
0
            /// <summary>
            /// Builds the RowWrapper.
            /// </summary>
            /// <returns> the row wrapper </returns>
            public virtual RowWrapper Build()
            {
                if (toTop == null && toBottom == null && parentId == null && siblingId == null)
                {
                    new MemberAccessException("One of the following fields must be set toTop, toBottom, parentId or" + " sibling Id");
                }

                RowWrapper rowWrapper = new RowWrapper();

                rowWrapper.toTop     = toTop;
                rowWrapper.toBottom  = toBottom;
                rowWrapper.parentId  = parentId;
                rowWrapper.siblingId = siblingId;
                rowWrapper.rows      = rows;
                return(rowWrapper);
            }
            /// <summary>
            /// Builds the RowWrapper.
            /// </summary>
            /// <returns> the row wrapper </returns>
            public virtual RowWrapper Build()
            {
                if (toTop == null && toBottom == null && parentId == null && siblingId == null)
                {
                    new MemberAccessException("One of the following fields must be set toTop, toBottom, parentId or" + " sibling Id");
                }

                RowWrapper rowWrapper = new RowWrapper();
                rowWrapper.toTop = toTop;
                rowWrapper.toBottom = toBottom;
                rowWrapper.parentId = parentId;
                rowWrapper.siblingId = siblingId;
                rowWrapper.rows = rows;
                return rowWrapper;
            }
            /// <summary>
            /// Builds the RowWrapper.
            /// </summary>
            /// <returns> the row wrapper </returns>
            public virtual RowWrapper Build()
            {
                if (toTop == null && toBottom == null && parentId == null && siblingId == null)
                {
                    throw new InvalidOperationException("One of the following must be defined to move a row: toTop, "+
                        "toBottom, parentId, siblingId.");
                }

                RowWrapper rowWrapper = new RowWrapper();
                rowWrapper.toTop = toTop;
                rowWrapper.toBottom = toBottom;
                rowWrapper.parentId = parentId;
                rowWrapper.siblingId = siblingId;
                return rowWrapper;
            }
 public virtual IList<Row> MoveRow(long id, RowWrapper rowWrapper)
 {
     throw new NotSupportedException();
 }