SelectedTournamentStore

This commit is contained in:
Natlinux81
2022-08-11 20:14:43 +02:00
parent e9b04dbe89
commit 960cf715ef
10 changed files with 93 additions and 38 deletions

View File

@@ -0,0 +1,29 @@
using Apollon.WPF.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Apollon.WPF.Stores
{
public class SelectedTournamentStore
{
private Tournament _selectedTournament;
public Tournament SelectedTournament
{
get
{
return _selectedTournament;
}
set
{
_selectedTournament = value;
SelectedTournamentChanged?.Invoke();
}
}
public event Action SelectedTournamentChanged;
}
}