CleanUp
This commit is contained in:
@@ -162,6 +162,20 @@ namespace Apollon.WPF.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private int _targets;
|
||||
public int Targets
|
||||
{
|
||||
get
|
||||
{
|
||||
return _targets;
|
||||
}
|
||||
set
|
||||
{
|
||||
_targets = value;
|
||||
OnPropertyChanged(nameof(Targets));
|
||||
}
|
||||
}
|
||||
|
||||
private bool _isSubmitting;
|
||||
public bool IsSubmitting
|
||||
{
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace Apollon.WPF.ViewModels
|
||||
EndDate = tournament.EndDate,
|
||||
Location = tournament.Location,
|
||||
Rounds = tournament.Rounds,
|
||||
Targets = tournament.Targets,
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -105,5 +105,19 @@ namespace Apollon.WPF.ViewModels
|
||||
OnPropertyChanged(nameof(Country));
|
||||
}
|
||||
}
|
||||
|
||||
private int _qualification;
|
||||
public int Qualification
|
||||
{
|
||||
get
|
||||
{
|
||||
return _qualification;
|
||||
}
|
||||
set
|
||||
{
|
||||
_qualification = value;
|
||||
OnPropertyChanged(nameof(Qualification));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Windows.Input;
|
||||
|
||||
namespace Apollon.WPF.ViewModels
|
||||
{
|
||||
public class NavigationBarViewModel : ViewModelBase
|
||||
public class NavBarTournamentDetailsViewModel : ViewModelBase
|
||||
{
|
||||
public ICommand NavigateNameListCommand { get;}
|
||||
public ICommand GroupsCommand { get;}
|
||||
@@ -25,8 +25,9 @@ namespace Apollon.WPF.ViewModels
|
||||
public string EndDate => SelectedTournament?.EndDate.ToString("d") ?? "kein Datum";
|
||||
public string Location => SelectedTournament?.Location ?? "kein Ort";
|
||||
public int Rounds => SelectedTournament?.Rounds ?? 0;
|
||||
public int Targets => SelectedTournament?.Targets ?? 0;
|
||||
|
||||
public ICommand NavigateNavBarCommand { get; }
|
||||
public ICommand NavigateTournamentDetailsCommand { get; }
|
||||
|
||||
public OverviewDetailsViewModel(SelectedTournamentsStore selectedTournamentStore, NavigationStore navigationStore, ModalNavigationStore modalNavigationStore,TournamentsStore tournamentsStore)
|
||||
{
|
||||
@@ -34,7 +35,7 @@ namespace Apollon.WPF.ViewModels
|
||||
|
||||
_selectedTournamentStore.SelectedTournamentChanged += SelectedTournamentStore_SelectedTournamentChanged;
|
||||
|
||||
NavigateNavBarCommand = new NavigateCommand<TournamentDetailsViewModel>(navigationStore, () => new TournamentDetailsViewModel(navigationStore, selectedTournamentStore, modalNavigationStore, tournamentsStore));
|
||||
NavigateTournamentDetailsCommand = new NavigateCommand<TournamentDetailsViewModel>(navigationStore, () => new TournamentDetailsViewModel(navigationStore, selectedTournamentStore, modalNavigationStore, tournamentsStore));
|
||||
}
|
||||
|
||||
protected override void Dispose()
|
||||
@@ -57,6 +58,7 @@ namespace Apollon.WPF.ViewModels
|
||||
OnPropertyChanged(nameof(EndDate));
|
||||
OnPropertyChanged(nameof(Location));
|
||||
OnPropertyChanged(nameof(Rounds));
|
||||
OnPropertyChanged(nameof(Targets));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace Apollon.WPF.ViewModels
|
||||
public string EndDate => SelectedTournament?.EndDate.ToString("d") ?? "kein Datum";
|
||||
public string Location => SelectedTournament?.Location ?? "kein Ort";
|
||||
public int Rounds => SelectedTournament?.Rounds ?? 0;
|
||||
public int Targets => SelectedTournament?.Targets ?? 0;
|
||||
|
||||
public ICommand NavigateOverviewCommand { get; }
|
||||
public TournamentDetailsViewModel(NavigationStore navigationStore, SelectedTournamentsStore selectedTournamentsStore, ModalNavigationStore modalNavigationStore, TournamentsStore tournamentsStore)
|
||||
|
||||
Reference in New Issue
Block a user