예제 #1
0
        public TVShowEncodeInfo(MainWindow window, Encode encodingQueue)
            : base(window, encodingQueue)
        {
            this.episodes.CollectionChanged += OnEpisodesChanged;

            this.scanService.ScanStared += OnScanStarted;
            this.scanService.ScanStatusChanged += OnScanStatusChanged;
            this.scanService.ScanCompleted += OnScanCompleted;

            ScanDisc();
        }
예제 #2
0
        protected EncodeInfo(MainWindow mainWindow, Encode encodingQueue)
        {
            this.mainWindow = mainWindow;
            this.encodingQueue = encodingQueue;

            this.encodingQueue.EncodeStarted += OnEncodeStarted;
            this.encodingQueue.EncodeStatusChanged += OnEncodeStatusChanged;
            this.encodingQueue.EncodeCompleted += OnEncodeEnded;

            DependencyPropertyDescriptor descriptor;
            descriptor = DependencyPropertyDescriptor.FromProperty(MainWindow.SourceDriveProperty, typeof(MainWindow));
            descriptor.AddValueChanged(this.mainWindow, (o, e) => OnSourceDriveChanged());

            CheckSettingErrors();
        }
예제 #3
0
 public MovieEncodeInfo(MainWindow mainWindow, Encode encodingQueue)
     : base(mainWindow, encodingQueue)
 {
 }