/// <summary> /// Initializes a new instance of the <see cref="View"/> class. /// </summary> /// <param name="newSlapsStore"> /// The new Slaps Store. /// </param> /// <param name="accountStore"> /// The account Store. /// </param> public View(INewSlapsStore newSlapsStore, AccountStore accountStore) { this.newSlapsStore = newSlapsStore; this.accountStore = accountStore; this.InitializeComponent(); this.viewModel = this.DataContext as ViewLinksViewModel; this.dataTransferManager = DataTransferManager.GetForCurrentView(); this.dataTransferManager.DataRequested += this.ShareStream; }
/// <summary> /// Initializes a new instance of the <see cref="Home"/> class. /// </summary> /// <param name="accountStore"> /// The account Store. /// </param> /// <param name="newSlapStore"> /// The new Slap Store. /// </param> /// <param name="subscriptionStore"> /// The subscription repository. /// </param> /// <param name="settingsStore"> /// The settings Store. /// </param> public Home(IAccountStore accountStore, INewSlapsStore newSlapStore, ISubscriptionStore subscriptionStore, ISettingsStore settingsStore) { this.accountStore = accountStore; this.newSlapStore = newSlapStore; this.subscriptionStore = subscriptionStore; this.settingsStore = settingsStore; this.InitializeComponent(); this.viewModel = this.DataContext as HomeViewModel; }