public OxyPlotVisualizationViewModelAdapter(VisualizationViewModel viewModel)
        {
            _plotModel = new PlotModel();
            _vizualizationViewModel = viewModel;

            _viewModel = viewModel.DataViewModel as ChartViewModel;

            _viewModel.ChartSeries.CollectionChanged += ChartSeries_CollectionChanged;

            _vizualizationViewModel.PropertyChanged += _viewModel_PropertyChanged;
        }
        public OxyPlotVisualizationViewModel(VisualizationViewModel viewModel)
            : base(viewModel.DataViewModel)
        {
            Dispatcher = viewModel.Dispatcher;
            Name = viewModel.Name;
            this.DataViewModel = viewModel.DataViewModel;

            OnDispose += (sender, args) => viewModel.Dispose();

            _adapter = new OxyPlotVisualizationViewModelAdapter( viewModel );
            _adapter.PlotModelChanged += _adapter_PlotModelChanged;
            _adapter.PlotDataUpdate += _adapter_PlotDataUpdate;
        }