Пример #1
0
        protected override void OpenAssetDetails()
        {
            var dataContext = new VideoDetailsViewModel {
                Asset = SelectedAsset, IsInEditMode = false
            };
            var detailsView = new VideoDetailsView {
                DataContext = dataContext
            };

            detailsView.Show();
        }
Пример #2
0
        protected override void AddAsset()
        {
            var newVideo = new Video();

            var videoEditDataContext = new VideoDetailsViewModel {
                Asset = newVideo, IsInEditMode = true
            };
            var videoEditWindow = new VideoDetailsView {
                DataContext = videoEditDataContext
            };

            videoEditWindow.Show();
        }