initial load

This commit is contained in:
2022-08-22 15:56:12 +02:00
commit d3b7ff17be
62 changed files with 2694 additions and 0 deletions

View File

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using YouTubeViewers.WPF.Stores;
using YouTubeViewers.WPF.ViewModels;
namespace YouTubeViewers.WPF.Commands
{
public class OpenAddYouTubeViewerCommand : CommandBase
{
private readonly YouTubeViewersStore _youTubeViewersStore;
private readonly ModalNavigationStore _modalNavigationStore;
public OpenAddYouTubeViewerCommand(YouTubeViewersStore youTubeViewersStore, ModalNavigationStore modalNavigationStore)
{
_youTubeViewersStore = youTubeViewersStore;
_modalNavigationStore = modalNavigationStore;
}
public override void Execute(object? parameter)
{
AddYouTubeViewerViewModel addYouTubeViewerViewModel = new AddYouTubeViewerViewModel(_youTubeViewersStore, _modalNavigationStore);
_modalNavigationStore.CurrentViewModel = addYouTubeViewerViewModel;
}
}
}