Exemplo n.º 1
0
 public ExportViewmodel(MediaManager mediaManager, IEnumerable<MediaExport> exportList)
 {
     Items = new ObservableCollection<MediaExportViewmodel>(exportList.Select(m => new MediaExportViewmodel(m)));
     Directories = mediaManager.IngestDirectories.Where(d => d.IsXDCAM).ToList();
     SelectedDirectory = Directories.FirstOrDefault();
     CommandExport = new SimpleCommand() { ExecuteDelegate = _export, CanExecuteDelegate = _canExport };
     _mediaManager = mediaManager;
     this._view = new Views.ExportView() { DataContext = this, Owner = System.Windows.Application.Current.MainWindow, ShowInTaskbar=false };
     _view.ShowDialog();
 }
 public ExportViewmodel(IMediaManager mediaManager, IEnumerable <ExportMedia> exportList)
 {
     _mediaManager     = mediaManager;
     Items             = new ObservableCollection <ExportMediaViewmodel>(exportList.Select(media => new ExportMediaViewmodel(mediaManager, media)));
     Directories       = mediaManager.IngestDirectories.Where(d => d.ContainsExport()).Select(d => new MediaDirectoryViewmodel(d, false, true)).ToList();
     SelectedDirectory = Directories.FirstOrDefault();
     CommandExport     = new UICommand()
     {
         ExecuteDelegate = _export, CanExecuteDelegate = _canExport
     };
     this._view = new Views.ExportView()
     {
         DataContext = this, Owner = System.Windows.Application.Current.MainWindow, ShowInTaskbar = false
     };
     _view.ShowDialog();
 }
Exemplo n.º 3
0
 protected override void OnDispose()
 {
     _view = null;
 }
 protected override void OnDispose()
 {
     _view = null;
 }