From 138ea1180443c3b73b81e47da016a54bf133f133 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 31 Jan 2010 14:28:23 +0000 Subject: WinGui: - Refacotring Code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3091 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/PresetLoader.cs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'win/C#/Functions/PresetLoader.cs') diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs index f42e734eb..a653f9669 100644 --- a/win/C#/Functions/PresetLoader.cs +++ b/win/C#/Functions/PresetLoader.cs @@ -213,22 +213,7 @@ namespace Handbrake.Functions #endregion #region Audio - // Clear the audio listing - mainWindow.AudioSettings.ClearAudioList(); - - if (presetQuery.AudioInformation != null) - foreach (AudioTrack track in presetQuery.AudioInformation) - { - ListViewItem newTrack = new ListViewItem(mainWindow.AudioSettings.GetNewID().ToString()); - - newTrack.SubItems.Add("Automatic"); - newTrack.SubItems.Add(track.Encoder); - newTrack.SubItems.Add(track.MixDown); - newTrack.SubItems.Add(track.SampleRate); - newTrack.SubItems.Add(track.Encoder.Contains("AC3") ? "Auto" : track.Bitrate); - newTrack.SubItems.Add(track.DRC); - mainWindow.AudioSettings.AddTrackForPreset(newTrack); - } + mainWindow.AudioSettings.LoadTracks(presetQuery.AudioInformation); #endregion #region Other -- cgit v1.2.3