27 lines
774 B
C#
27 lines
774 B
C#
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 OpenAddTournamentCommand : CommandBase
|
|
{
|
|
private readonly ModalNavigationStore _modalNavigationStore;
|
|
|
|
public OpenAddTournamentCommand(ModalNavigationStore modalNavigationStore)
|
|
{
|
|
_modalNavigationStore = modalNavigationStore;
|
|
}
|
|
|
|
public override void Execute(object parameter)
|
|
{
|
|
AddTournamentViewModel addTournamentViewModel = new AddTournamentViewModel(_modalNavigationStore);
|
|
_modalNavigationStore.CurrentViewModel = addTournamentViewModel;
|
|
}
|
|
}
|
|
}
|