Now it is possible to finnish a tournament with scores and mails
This commit is contained in:
@ -6,6 +6,8 @@ namespace TrackerLibrary.Models
|
||||
{
|
||||
public class TournamentModel
|
||||
{
|
||||
public event EventHandler<DateTime> OnTournamentComplete;
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for this tournament
|
||||
/// </summary>
|
||||
@ -30,5 +32,10 @@ namespace TrackerLibrary.Models
|
||||
/// The matchups per round
|
||||
/// </summary>
|
||||
public List<List<Models.MatchupModel>> Rounds { get; set; } = new List<List<Models.MatchupModel>>();
|
||||
|
||||
public void CompleteTournament()
|
||||
{
|
||||
OnTournamentComplete?.Invoke(this,DateTime.Now);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user