예제 #1
0
            /// <summary>
            /// <para>
            /// removes <see cref="Row"/> corresponding to <paramref name="portfolioEntry"/> from
            /// table, if it exists there.
            /// </para>
            /// <para>
            /// returns whether <see cref="Row"/> corresponding to <paramref name="portfolioEntry"/> existed in table
            /// prior to being removed.
            /// </para>
            /// </summary>
            /// <param name="portfolioEntry"></param>
            /// <returns>
            /// true if <see cref="Row"/> with <paramref name="portfolioEntry"/>'s data existed in table
            /// prior to being removed,
            /// else false
            /// </returns>
            public bool RemoveRow(PortfolioEntry portfolioEntry)
            {
                PortfolioEntryPropertyRow portfolioEntryPropertyRow =
                    new PortfolioEntryPropertyRow(portfolioEntry);

                return(propertyTable.RemoveRow(portfolioEntryPropertyRow));
            }
예제 #2
0
            /// <summary>
            /// adds a new <see cref="Row"/> with <paramref name="portfolioEntry"/>'s data to table.
            /// </summary>
            /// <seealso cref="PropertyTable.AddRow(PropertyRow)"/>
            /// <param name="portfolioEntry"></param>
            public void AddRow(PortfolioEntry portfolioEntry)
            {
                PortfolioEntryPropertyRow portfolioEntryPropertyRow =
                    new PortfolioEntryPropertyRow(portfolioEntry);

                propertyTable.AddRow(portfolioEntryPropertyRow);
            }