public MainViewModel() { _buttonColorManager = new ButtonsColorManager(); _secondChartManager = new SecondChartManager(); LeftChartsManager = new ChartsManagerViewModel(_buttonColorManager, _secondChartManager); RightChartsManager = new ChartsManagerViewModel(_buttonColorManager, _secondChartManager); }
public ChartsManagerViewModel(ButtonsColorManager buttonsColorManager, SecondChartManager secondChartManager) { Contract.Assert(buttonsColorManager != null, "buttonsColorManager != null"); Contract.Assert(secondChartManager != null, "secondChartManager != null"); _buttonsColorManager = buttonsColorManager; _secondChartManager = secondChartManager; _chartsGroupsProvider = new ChartsGroupsProvider(buttonsColorManager, secondChartManager); }