Edit Function are available
This commit is contained in:
25
Apollon.WPF/Stores/TournamentsStore.cs
Normal file
25
Apollon.WPF/Stores/TournamentsStore.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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 TournamentsStore
|
||||
{
|
||||
public event Action<Tournament> TournamentAdded;
|
||||
public event Action<Tournament> TournamentUpdated;
|
||||
|
||||
public async Task Add(Tournament tournament)
|
||||
{
|
||||
TournamentAdded?.Invoke(tournament);
|
||||
}
|
||||
|
||||
public async Task Update (Tournament tournament)
|
||||
{
|
||||
TournamentUpdated?.Invoke(tournament);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user