Beispiel #1
0
            /// <summary>
            /// adds <see cref="PropertyColumn"/>s corresponding to <see cref="CoinTicker"/> to table.
            /// </summary>
            private void initCoinTickerPropertyColumns()
            {
                // add PropertyColumns corresponding to CoinTicker to table
                foreach (eDisplayProperty displayProperty in displayPropertyToPropertyColumn.Keys)
                {
                    PropertyColumn propertyColumn =
                        displayPropertyToPropertyColumn[displayProperty];

                    propertyTable.AddColumn(propertyColumn);
                }
            }
            /// <summary>
            /// adds <see cref="PropertyColumn"/>s corresponding to <see cref="PortfolioEntry"/> properties
            /// to table.
            /// </summary>
            private void addPortfolioEntryPropertyColumns()
            {
                // add each property column corresponding to PortfolioEntry
                foreach (eDisplayProperty displayProperty in displayPropertyToPropertyColumn.Keys)
                {
                    PropertyColumn propertyColumn =
                        displayPropertyToPropertyColumn[displayProperty];

                    propertyTable.AddColumn(propertyColumn);
                }
            }