Exemplo n.º 1
0
        public TableSection( string name, TableHeader header )
            : base(name)
        {
            Header = header;

            myView = new DefaultTableView( this );
            Rows = new List<TableRow>();
        }
Exemplo n.º 2
0
        private AbstractSection CreateTableSection( TradingResult tradingResult )
        {
            var header = new TableHeader( "Date", "Action", "Price", "Quantity", "Value" );
            var section = new TableSection( "Orders", header );

            foreach ( var order in tradingResult.TradingLog.Orders )
            {
                var row = section.NewRow( order.Timestamp, order.Type, order.Price, order.Quantity, order.NettoValue );
                section.Rows.Add( row );
            }

            return section;
        }