Application ready before dependency injction

This commit is contained in:
2022-08-23 23:31:45 +02:00
parent d3b7ff17be
commit 2b42691434
15 changed files with 234 additions and 78 deletions

View File

@ -20,6 +20,35 @@ namespace YouTubeViewers.WPF.ViewModels
public string UserName => YouTubeViewer.Username;
#region IsDeleting
private bool _isDeleting;
public bool IsDeleting
{
get { return _isDeleting; }
set { _isDeleting = value; OnPropertyChanged(); }
}
#endregion IsDeleting
#region ErrorMessage
private string _errorMessage;
public string ErrorMessage
{
get { return _errorMessage; }
set
{
_errorMessage = value;
OnPropertyChanged(nameof(ErrorMessage));
OnPropertyChanged(nameof(HasErrorMessage));
}
}
#endregion ErrorMessage
public bool HasErrorMessage => !string.IsNullOrEmpty(ErrorMessage);
public ICommand EditCommand { get; }
public ICommand DeleteCommand { get; }