Application anyhow ready and functioning

This commit is contained in:
2022-08-24 21:55:34 +02:00
parent 7806f2e85d
commit 100b40d212
2 changed files with 27 additions and 5 deletions

View File

@ -14,9 +14,15 @@ namespace YouTubeViewers.WPF.Stores
public SelectedYouTubeViewerStore(YouTubeViewersStore youTubeViewersStore)
{
_youTubeViewersStore = youTubeViewersStore;
_youTubeViewersStore.YouTubeViewerAdded += YouTubeViewersStore_YouTubeViewerAdded;
_youTubeViewersStore.YouTubeViewerUpdated += YouTubeViewersStore_YouTubeViewerUpdated;
}
private void YouTubeViewersStore_YouTubeViewerAdded(YouTubeViewer youTubeViewer)
{
SelectedYouTubeViewer=youTubeViewer;
}
private void YouTubeViewersStore_YouTubeViewerUpdated(YouTubeViewer youTubeViewer)
{
if (youTubeViewer.Id == SelectedYouTubeViewer?.Id)