24 lines
848 B
C#
24 lines
848 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Input;
|
|
using YouTubeViewers.WPF.Commands;
|
|
using YouTubeViewers.WPF.Stores;
|
|
|
|
namespace YouTubeViewers.WPF.ViewModels;
|
|
|
|
public class AddYouTubeViewerViewModel : ViewModelBase
|
|
{
|
|
public YouTubeViewerDetailsFormViewModel YouTubeViewerDetailsFormViewModel { get; }
|
|
|
|
public AddYouTubeViewerViewModel(YouTubeViewersStore _youTubeViewersStore, ModalNavigationStore modalNavigationStore)
|
|
{
|
|
ICommand cancelCommand = new CloseModalCommand( modalNavigationStore);
|
|
ICommand submitCommand = new AddYouTubeViewerCommand(this , _youTubeViewersStore,modalNavigationStore);
|
|
YouTubeViewerDetailsFormViewModel = new YouTubeViewerDetailsFormViewModel(submitCommand,cancelCommand);
|
|
}
|
|
|
|
}
|