/* AudioPanel.cs $ This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ namespace Handbrake.Controls { using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Windows.Forms; using HandBrake.ApplicationServices; using HandBrake.ApplicationServices.Functions; using HandBrake.ApplicationServices.Model; using HandBrake.ApplicationServices.Model.Encoding; using HandBrake.ApplicationServices.Parsing; using HandBrake.ApplicationServices.Services.Interfaces; using HandBrake.ApplicationServices.Utilities; using Handbrake.ToolWindows; /// /// The AudioPanel Control /// public partial class AudioPanel : UserControl { #region Private Variables private readonly BindingList audioTracks = new BindingList(); private const string Passthru = "Passthru"; private AdvancedAudio advancedAudio = new AdvancedAudio(); /// /// The User Setting Service. /// private readonly IUserSettingService UserSettingService = ServiceManager.UserSettingService; #endregion #region Constructor and Events /// /// Initializes a new instance of the class. /// public AudioPanel() { InitializeComponent(); this.ScannedTracks = new BindingList