Files
Apollon/Apollon.WPF/ViewModels/EditTournamentViewModel.cs
2022-08-16 00:50:33 +02:00

34 lines
1.1 KiB
C#

using Apollon.WPF.Commands;
using Apollon.WPF.Models;
using Apollon.WPF.Stores;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace Apollon.WPF.ViewModels
{
public class EditTournamentViewModel : ViewModelBase
{
public AddEditDetailsViewModel AddEditDetailsViewModel { get; }
public EditTournamentViewModel(ModalNavigationStore modalNavigationStore)
{
ICommand submitCommand = new EditTournamentCommand(modalNavigationStore);
ICommand cancelCommand = new CloseModalCommand(modalNavigationStore);
AddEditDetailsViewModel = new AddEditDetailsViewModel(submitCommand, cancelCommand )
{
//Organisation = tournament.Organisation,
//Tournamentname = tournament.Tournamentname,
//Category = tournament.Category,
//Startdate = tournament.Startdate,
//Enddate = tournament.Enddate,
//Location = tournament.Location,
//Rounds = tournament.Rounds,
};
}
}
}