Пример #1
0
 public MainWindow()
 {
     InitializeComponent();
     currentView            = new CashRegisterView();
     currentView.mainWindow = this;
     DataContext            = currentView;
 }
Пример #2
0
 public MenuCommand(CashRegisterView cashRegisterView, Action <int> currentAction)
 {
     _cashRegisterView = cashRegisterView;
     _currentAction    = currentAction;
 }