private void InitializeCharts() { var cashGraphSettingsService = ServiceLocator.Current.GetInstance <ICashGraphSettingsService>(); var moneyWonChartSeries = ChartSeriesProvider.CreateMoneyWonChartSeries(); MoneyWonGraphViewModel = new GraphViewModel(new CashGraphViewModel(moneyWonChartSeries, cashGraphSettingsService.GetSettings(CashChartType.MoneyWon))); var bb100ChartSeries = ChartSeriesProvider.CreateBB100ChartSeries(); BB100GraphViewModel = new GraphViewModel(new CashGraphViewModel(bb100ChartSeries, cashGraphSettingsService.GetSettings(CashChartType.BB100))); }
private void InitializeMainChart(CashGraphPopupViewModelInfo viewModelInfo) { var moneyWonChartSeries = ChartSeriesProvider.CreateMoneyWonChartSeries(); MainGraphViewModel = new CashGraphViewModel(moneyWonChartSeries); if (viewModelInfo.MoneyWonCashGraphViewModel != null) { MainGraphViewModel.ShowNonShowdown = viewModelInfo.MoneyWonCashGraphViewModel.ShowNonShowdown; MainGraphViewModel.ShowShowdown = viewModelInfo.MoneyWonCashGraphViewModel.ShowShowdown; MainGraphViewModel.ShowEV = viewModelInfo.MoneyWonCashGraphViewModel.ShowEV; MainGraphViewModel.ValueType = viewModelInfo.MoneyWonCashGraphViewModel.ValueType; MainGraphViewModel.ChartDisplayRange = viewModelInfo.MoneyWonCashGraphViewModel.ChartDisplayRange; } MainGraphViewModel.Update(); }