/// <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; } }
/// <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. }
/// <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); }
/// <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); }