Application ready before dependency injction
This commit is contained in:
@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user