コード例 #1
0
ファイル: MainViewModel.cs プロジェクト: xAragornx/HandBrake
 /// <summary>
 /// Handle the Scan Completed Event
 /// </summary>
 /// <param name="sender">
 /// The Sender
 /// </param>
 /// <param name="e">
 /// The EventArgs
 /// </param>
 private void ScanCompleted(object sender, HandBrake.ApplicationServices.EventArgs.ScanCompletedEventArgs e)
 {
     if (e.Successful)
     {
         this.ScannedSource = this.scanService.SouceData;
     }
 }
コード例 #2
0
ファイル: MainViewModel.cs プロジェクト: dronamraju/HandBrake
        /// <summary>
        /// Handle the Scan Completed Event
        /// </summary>
        /// <param name="sender">
        /// The Sender
        /// </param>
        /// <param name="e">
        /// The EventArgs
        /// </param>
        private void ScanCompleted(object sender, HandBrake.ApplicationServices.EventArgs.ScanCompletedEventArgs e)
        {
            if (e.Successful)
            {
                this.scanService.SouceData.CopyTo(this.ScannedSource);
                this.NotifyOfPropertyChange("ScannedSource");
                this.NotifyOfPropertyChange("ScannedSource.Titles");
                this.NotifyOfPropertyChange("T");
                this.SelectedTitle = this.ScannedSource.Titles.Where(t => t.MainTitle).FirstOrDefault();
            }

            this.SourceLabel = "Scan Completed";

            // TODO Re-enable GUI.
        }
コード例 #3
0
 /// <summary>
 /// The scan service Scan Completed Event Handler.
 /// Fires CanExecuteChanged
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The ScanCompletedEventArgs.
 /// </param>
 private void ScanServiceWrapperScanCompleted(object sender, HandBrake.ApplicationServices.EventArgs.ScanCompletedEventArgs e)
 {
     Caliburn.Micro.Execute.OnUIThread(this.OnCanExecuteChanged);
 }
コード例 #4
0
 /// <summary>
 /// The scan service scan completed event
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The ScanCompletedEventArgs
 /// </param>
 private void ScanServiceScanCompleted(object sender, HandBrake.ApplicationServices.EventArgs.ScanCompletedEventArgs e)
 {
     this.ScanCompleted(sender, e);
 }