Beispiel #1
0
        public MainViewModel()
        {
            _buttonColorManager = new ButtonsColorManager();

            _secondChartManager = new SecondChartManager();

            LeftChartsManager = new ChartsManagerViewModel(_buttonColorManager, _secondChartManager);

            RightChartsManager = new ChartsManagerViewModel(_buttonColorManager, _secondChartManager);
        }
Beispiel #2
0
        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);
        }