public MainWindowViewModel() { _blackListView.Error += OnBlacListViewError; _blackListView.InfoRequested += OnBlackListViewInfoRequested; _blackListView.GoToAddItems += OnGoToAddItems; _addItemsView.Error += OnAddItemsViewError; _addItemsView.InfoRequested += OnAddItemsViewInfoRequested; _addItemsView.BackToMenu += OnBackToMenu; CurrentView = _blackListView; }
private void OnGoToAddItems(object sender, EventArgs e) { CurrentView = _addItemsView; }
private void OnBackToMenu(object sender, EventArgs e) { CurrentView = _blackListView; }