Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NewStream"/> class.
        /// </summary>
        /// <param name="streamStore">
        /// The stream Store.
        /// </param>
        /// <param name="accountStore">
        /// The account Store.
        /// </param>
        public NewStream(IStreamStore streamStore, AccountStore accountStore)
        {
            this.streamStore = streamStore;
            this.accountStore = accountStore;
            this.InitializeComponent();

            this.viewModel = this.DataContext as NewSlapStreamViewModel;
        }
Exemplo n.º 2
0
        /// <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;
        }