public ChartGroupViewModel(PriceChartPaneViewModel parentViewModel, OverviewZoomViewModel zoom) { ParentViewModel = parentViewModel; OverviewZoom = zoom; ZoomResetCommand = new RelayCommand(OverviewZoom.ZoomToDefault); _resolutionSelected = zoom.Resolution; ChartHeaderViewModel = new ChartHeaderViewModel(parentViewModel); ParentViewModel.OnRangeChange += (s, e) => InvalidateRangeProperties(); }
public ChartHeaderViewModel(PriceChartPaneViewModel parentViewModel) { _parentViewModel = parentViewModel; _parentViewModel.OnDataUpdate += OnParentModelOnDataUpdate; }