Application anyhow ready and functioning
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user