Ready for Commands

This commit is contained in:
Natlinux81
2022-08-14 03:05:01 +02:00
parent 311cd83b70
commit ab742103de
4 changed files with 25 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ namespace Apollon.WPF.ViewModels
}
private string _tournamentname;
public string Tounamentname
public string Tournamentname
{
get
{
@@ -33,7 +33,7 @@ namespace Apollon.WPF.ViewModels
set
{
_tournamentname = value;
OnPropertyChanged(nameof(Tounamentname));
OnPropertyChanged(nameof(Tournamentname));
OnPropertyChanged(nameof(CanSubmit));
}
}
@@ -94,9 +94,9 @@ namespace Apollon.WPF.ViewModels
}
}
public bool CanSubmit => !string.IsNullOrEmpty(Tounamentname);
public bool CanSubmit => !string.IsNullOrEmpty(Tournamentname);
public ICommand SubmitCommand { get; }
public ICommand CancleCommand { get; }
public ICommand CancelCommand { get; }
}