示例#1
0
 public VideoGridImage(VideoMetadata video, VideoPreviewImageViewModel vm, List<MediaThumb> thumbs) :
     base(vm.MaxPreviewImageWidth,vm.NrRows, vm.NrColumns, getImages(thumbs), vm.BackgroundColor, vm.FontColor)
 {                                 
     Video = video;
     Vm = vm;
     Thumbs = thumbs;
 }
示例#2
0
 public VideoGridImage(VideoMetadata video, VideoPreviewImageViewModel vm, List <MediaThumb> thumbs) :
     base(vm.MaxPreviewImageWidth, vm.NrRows, vm.NrColumns, getImages(thumbs), vm.BackgroundColor, vm.FontColor)
 {
     Video  = video;
     Vm     = vm;
     Thumbs = thumbs;
 }
        public VideoPreviewImageView()
        {
            InitializeComponent();

            DataContext = viewModel = new VideoPreviewImageViewModel(MediaFileWatcher.Instance);

            viewModel.ClosingRequest += new EventHandler <CloseableBindableBase.DialogEventArgs>((s, e) =>
            {
                this.Close();
            });
        }
        public VideoPreviewImageView()
        {
            InitializeComponent();

            DataContext = viewModel = new VideoPreviewImageViewModel(MediaFileWatcher.Instance);

            viewModel.ClosingRequest += new EventHandler<CloseableBindableBase.DialogEventArgs>((s, e) =>
                {
                    this.Close();
                });
        }