finish delete Modal

This commit is contained in:
Natlinux81
2022-08-21 20:05:39 +02:00
parent 63e24deccc
commit 694b932f24
5 changed files with 25 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ namespace Apollon.WPF.ViewModels
EditCommand = new OpenEditTournamentCommand(this, tournamentStore, modalNavigationStore);
//DeleteCommand = new DeleteTournamentCommand(this, tournamentStore);
WarningDeleteCommand = new OpenWarningDeleteCommand(modalNavigationStore);
WarningDeleteCommand = new OpenWarningDeleteCommand(this, modalNavigationStore, tournamentStore);
}
public void Update(Tournament tournament)

View File

@@ -1,16 +1,22 @@
using Apollon.WPF.Stores;
using Apollon.WPF.Commands;
using Apollon.WPF.Stores;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace Apollon.WPF.ViewModels
{
public class WarningDeleteViewModel : ViewModelBase
{
public WarningDeleteViewModel(ModalNavigationStore modalNavigationStore)
public ICommand WarningCloseCommand { get;}
public ICommand DeleteCommand { get; }
public WarningDeleteViewModel(ModalNavigationStore modalNavigationStore,TournamentsStore tournamentsStore, OverviewListingItemViewModel overviewListingItemViewModel)
{
WarningCloseCommand = new CloseModalCommand(modalNavigationStore);
DeleteCommand = new DeleteTournamentCommand(overviewListingItemViewModel, tournamentsStore, modalNavigationStore);
}
}
}