public TableRow( TableSection table, params object[] values ) { myTable = table; myCells = new Dictionary<string, object>(); SetValues( values ); }
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 ); }
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; }
public OrderByGainView( TableSection table ) : base(table) { }
public DefaultTableView( TableSection table ) : base(table) { }
public TableRow( TableSection table ) : this(table, null) { }
protected AbstractTableView( TableSection table ) { Table = table; }