selectetTournament without DateTime

This commit is contained in:
Natlinux81
2022-08-12 02:24:58 +02:00
parent 914631eaed
commit bfe404fbc7
6 changed files with 65 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
using System;
using Apollon.WPF.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -9,13 +10,14 @@ namespace Apollon.WPF.ViewModels
{
public class ApollonOverviewListingItemViewModel : ViewModelBase
{
public string Tournamentname { get; }
public ICommand DeleteCommand { get; }
public Tournament Tournament { get;}
public ApollonOverviewListingItemViewModel(string tournamentname)
public string Tournamentname => Tournament.Tournamentname;
public ICommand DeleteCommand { get; }
public ApollonOverviewListingItemViewModel(Tournament tournament)
{
Tournamentname = tournamentname;
Tournament = tournament;
}
}
}