SelectedTournamentStore
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Apollon.WPF.Stores
|
||||
{
|
||||
public class SelectedApollonStore
|
||||
{
|
||||
public int MyProperty { get; set; }
|
||||
}
|
||||
}
|
||||
29
Apollon.WPF/Stores/SelectedTournamentStore.cs
Normal file
29
Apollon.WPF/Stores/SelectedTournamentStore.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user