// Set the Advanced Control.\r
if (!advancedAudio.IsDisposed)\r
advancedAudio.Track = track;\r
+\r
+ this.RefreshEnabledControls();\r
}\r
}\r
}\r
\r
#region Private Functions\r
\r
+ /// <summary>\r
+ /// Refresh the enabled controls\r
+ /// </summary>\r
+ private void RefreshEnabledControls()\r
+ {\r
+ // Configure the widgets with values\r
+ if (drp_audioEncoder.Text.Contains("Passthru"))\r
+ {\r
+ drp_audioMix.Enabled = drp_audioBitrate.Enabled = drp_audioSample.Enabled = btn_AdvancedAudio.Enabled = false;\r
+ }\r
+ else\r
+ {\r
+ drp_audioMix.Enabled = drp_audioBitrate.Enabled = drp_audioSample.Enabled = btn_AdvancedAudio.Enabled = true;\r
+ }\r
+\r
+ if (drp_audioEncoder.Text.Contains("Flac"))\r
+ {\r
+ drp_audioBitrate.Enabled = false;\r
+ }\r
+ }\r
+\r
+\r
/// <summary>\r
/// Attempt to automatically select the correct audio tracks based on the users settings.\r
/// </summary>\r