using Apollon.WPF.Services; using Apollon.WPF.Stores; using Apollon.WPF.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Apollon.WPF.Commands { public class NavigateCommand : CommandBase where TViewModel : ViewModelBase { private readonly INavigationService _navigationService; public NavigateCommand(INavigationService navigationService) { _navigationService = navigationService; } public override void Execute(object parameter) { _navigationService.Navigate(); } } }