public OperationCommand(CalcViewModel viewModel) { this.viewModel = viewModel; }
public CalcCommand(CalcViewModel viewModel) { this.viewModel = viewModel; }
public DeleteCharCommand(CalcViewModel viewModel) { this.viewModel = viewModel; }
public AddCharCommand(CalcViewModel viewModel) { this.viewModel = viewModel; }
public MainWindow() { InitializeComponent(); DataContext = new CalcViewModel(); }
public MainWindow() { InitializeComponent(); cvm = (CalcViewModel)base.DataContext; }
private void InitializeViewModel() { _viewModel = new CalcViewModel(); DataContext = _viewModel; }