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

@ -21,6 +21,7 @@ namespace YouTubeViewers.WPF.Commands
public override async Task ExecuteAsync(object? parameter)
{
_youTubeViewersViewModel.ErrorMessage = null;
_youTubeViewersViewModel.IsLoading = true;
try
@ -29,7 +30,7 @@ namespace YouTubeViewers.WPF.Commands
}
catch (Exception)
{
throw;
_youTubeViewersViewModel.ErrorMessage = "Failed to load YouTube viewers. Please restart the application.";
}
finally
{