Ejemplo n.º 1
0
 public Graph(StockChartPresentation parentChart)
 {
     ParentChart = parentChart;
     Plots       = new ObservableCollection <Plot>();
     Trades      = new ObservableCollection <TradeRecord>();
     InitializeComponent();
     this.DataContext         = this;
     Loaded                  += delegate { RedrawNeeded(); };
     SizeChanged             += delegate { RedrawNeeded(); };
     Plots.CollectionChanged += delegate { RedrawNeeded(); };
 }
Ejemplo n.º 2
0
 public StockChart()
 {
     InitializeComponent();
     Presentation     = new StockChartPresentation(this);
     this.DataContext = Presentation;
 }