public MainWindow() { viewModel = new ViewModels.MainWindowModel(); DataContext = viewModel; InitializeComponent(); Closing += stop; }
public PlotWindow(int key) { this.key = key; this.Title = "Plot for ID: " + Convert.ToString(key, 16); viewModel = new ViewModels.MainWindowModel(); DataContext = viewModel; InitializeComponent(); Plot1.Model = viewModel.PlotModel; }