/// <summary>
        /// Scan Progress Event Handler
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The EventArgs.
        /// </param>
        private void InstanceScanProgress(object sender, ScanProgressEventArgs e)
        {
            if (this.ScanStatusChanged != null)
            {
                HandBrakeWPF.Services.Scan.EventArgs.ScanProgressEventArgs eventArgs =
                    new HandBrakeWPF.Services.Scan.EventArgs.ScanProgressEventArgs
                {
                    CurrentTitle = e.CurrentTitle,
                    Titles       = e.Titles,
                    Percentage   = Math.Round((decimal)e.Progress * 100, 0)
                };

                this.ScanStatusChanged(this, eventArgs);
            }
        }
示例#2
0
        /// <summary>
        /// Scan Progress Event Handler
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The EventArgs.
        /// </param>
        private void InstanceScanProgress(object sender, ScanProgressEventArgs e)
        {
            if (this.ScanStatusChanged != null)
            {
                HandBrakeWPF.Services.Scan.EventArgs.ScanProgressEventArgs eventArgs =
                    new HandBrakeWPF.Services.Scan.EventArgs.ScanProgressEventArgs
                        {
                            CurrentTitle = e.CurrentTitle,
                            Titles = e.Titles,
                            Percentage = Math.Round((decimal)e.Progress * 100, 0)
                        };

                this.ScanStatusChanged(this, eventArgs);
            }
        }