Exemplo n.º 1
0
        public TableRow( TableSection table, params object[] values )
        {
            myTable = table;
            myCells = new Dictionary<string, object>();

            SetValues( values );
        }
Exemplo n.º 2
0
        public BackTestingReport( string systemName, DateTime dateUnderUnderAnalysis )
            : base("BackTesting", "Simple back testing")
        {
            AddOverviewSection( systemName, dateUnderUnderAnalysis );

            myTestResultSection = new TableSection( "Result", new TableHeader( "Stock", "Gain" ) );
            myTestResultSection.View = new OrderByGainView( myTestResultSection );
            Sections.Add( myTestResultSection );
        }
Exemplo n.º 3
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;
        }
Exemplo n.º 4
0
 public OrderByGainView( TableSection table )
     : base(table)
 {
 }
Exemplo n.º 5
0
 public DefaultTableView( TableSection table )
     : base(table)
 {
 }
Exemplo n.º 6
0
 public TableRow( TableSection table )
     : this(table, null)
 {
 }
Exemplo n.º 7
0
 protected AbstractTableView( TableSection table )
 {
     Table = table;
 }