initial load
This commit is contained in:
23
YouTubeViewers.WPF/ViewModels/AddYouTubeViewerViewModel.cs
Normal file
23
YouTubeViewers.WPF/ViewModels/AddYouTubeViewerViewModel.cs
Normal file
@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user