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