private void CreateRelayCommands(ViewManager viewManager) { _viewManager = viewManager; ShowMainWindowCommand = new RelayCommand(() => _viewManager.Show(View.Main)); ShowCountriesListWindowCommand = new RelayCommand(() => _viewManager.Show(View.CountriesList)); ShowHelpWindowCommand = new RelayCommand(() => _viewManager.Show(View.Help)); ShowHistoryWindowCommand = new RelayCommand(() => _viewManager.Show(View.History)); }
private void CreateRelayCommands(ViewManager viewManager) { _viewManager = viewManager; ShowHelpWindowCommand = new RelayCommand(() => _viewManager.Show(View.Help)); }
private void CreateRelayCommands(ViewManager viewManager) { _viewManager = viewManager; ShowCountryDetailsWindowCommand = new RelayCommand(ShowCountryDetails); ShowHelpWindowCommand = new RelayCommand(() => _viewManager.Show(View.Help)); SelectionChanged = new RelayCommand<object>(ChangeSelection); }