refill not works

This commit is contained in:
Natlinux81
2022-08-18 01:10:52 +02:00
parent 5f93b56b8e
commit b40ef92e4b
5 changed files with 25 additions and 40 deletions

View File

@@ -14,20 +14,12 @@ namespace Apollon.WPF.ViewModels
{
public AddEditDetailsViewModel AddEditDetailsViewModel { get; }
public EditTournamentViewModel(ModalNavigationStore modalNavigationStore, Tournament tournament)
public EditTournamentViewModel(ModalNavigationStore modalNavigationStore)
{
ICommand submitCommand = new EditTournamentCommand(modalNavigationStore);
ICommand cancelCommand = new CloseModalCommand(modalNavigationStore);
AddEditDetailsViewModel = new AddEditDetailsViewModel(submitCommand, cancelCommand )
{
Organisation = tournament.Organisation,
TournamentName = tournament.TournamentName,
Competition = tournament.Competition,
StartDate = tournament.StartDate,
EndDate = tournament.EndDate,
Location = tournament.Location,
Rounds = tournament.Rounds,
};
AddEditDetailsViewModel = new AddEditDetailsViewModel(submitCommand, cancelCommand);
}
}
}