Exemple #1
0
        public OperationCommand(CalcViewModel viewModel)

        {
            this.viewModel = viewModel;
        }
Exemple #2
0
        public CalcCommand(CalcViewModel viewModel)

        {
            this.viewModel = viewModel;
        }
Exemple #3
0
        public DeleteCharCommand(CalcViewModel viewModel)

        {
            this.viewModel = viewModel;
        }
Exemple #4
0
        public AddCharCommand(CalcViewModel viewModel)

        {
            this.viewModel = viewModel;
        }
Exemple #5
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = new CalcViewModel();
 }
Exemple #6
0
 public MainWindow()
 {
     InitializeComponent();
     cvm = (CalcViewModel)base.DataContext;
 }
Exemple #7
0
 private void InitializeViewModel()
 {
     _viewModel  = new CalcViewModel();
     DataContext = _viewModel;
 }