public ResultsWindow(Calculator calculatorModel) { InitializeComponent(); viewModel = new ResultsViewer(calculatorModel); DataContext = viewModel; viewModel.PropertyChanged += OnModelChanged; }
public MainWindow() { InitializeComponent(); _viewModel = new Calculator(uxWorkspaceViewbox, this); DataContext = _viewModel; }
public ResultsViewer(Calculator calculatorModel) : this() { this.calculatorModel = calculatorModel; }