Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AllowedPassthru"/> class.
 /// Copy Constructor
 /// </summary>
 /// <param name="initialValue">
 /// The initial value.
 /// </param>
 public AllowedPassthru(AllowedPassthru initialValue)
 {
     this.AudioAllowAACPass = initialValue.AudioAllowAACPass;
     this.AudioAllowAC3Pass = initialValue.AudioAllowAC3Pass;
     this.AudioAllowDTSHDPass = initialValue.AudioAllowDTSHDPass;
     this.AudioAllowDTSPass = initialValue.AudioAllowDTSPass;
     this.AudioAllowMP3Pass = initialValue.AudioAllowMP3Pass;
     this.AudioEncoderFallback = initialValue.AudioEncoderFallback;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AllowedPassthru"/> class.
 /// Copy Constructor
 /// </summary>
 /// <param name="initialValue">
 /// The initial value.
 /// </param>
 public AllowedPassthru(AllowedPassthru initialValue)
 {
     this.AudioAllowAACPass    = initialValue.AudioAllowAACPass;
     this.AudioAllowAC3Pass    = initialValue.AudioAllowAC3Pass;
     this.AudioAllowDTSHDPass  = initialValue.AudioAllowDTSHDPass;
     this.AudioAllowDTSPass    = initialValue.AudioAllowDTSPass;
     this.AudioAllowMP3Pass    = initialValue.AudioAllowMP3Pass;
     this.AudioEncoderFallback = initialValue.AudioEncoderFallback;
 }
Exemplo n.º 3
0
        /// <summary>
        /// Setup the Passthru Settings Panel
        /// </summary>
        /// <param name="settings">
        /// The settings.
        /// </param>
        private void SetPassthruSettings(AllowedPassthru settings)
        {
            if (settings == null)
            {
                settings = this.PassthruSettings;
            }

            this.check_aac.Checked = settings.AudioAllowAACPass;
            this.check_mp3.Checked = settings.AudioAllowMP3Pass;
            this.check_ac3.Checked = settings.AudioAllowAC3Pass;
            this.check_dts.Checked = settings.AudioAllowDTSPass;
            this.check_dtshd.Checked = settings.AudioAllowDTSHDPass;
            this.drp_passthruFallback.SelectedItem = EnumHelper<AudioEncoder>.GetDisplay(settings.AudioEncoderFallback);
        }