Ejemplo n.º 1
0
        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;
        }
        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;
        }