Application ready before dependency injction
This commit is contained in:
@ -59,6 +59,25 @@ public class YouTubeViewerDetailsFormViewModel : ViewModelBase
|
||||
|
||||
#endregion IsSubmitting
|
||||
|
||||
#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 bool CanSubmit => !string.IsNullOrEmpty(UserName);
|
||||
public ICommand SubmitCommand { get; }
|
||||
public ICommand CancelCommand { get; }
|
||||
|
||||
Reference in New Issue
Block a user