summaryrefslogtreecommitdiffstats
path: root/win/CS/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-12-03 20:42:25 +0000
committersr55 <[email protected]>2011-12-03 20:42:25 +0000
commitc1f270b152db7a124b4664277c22996115836f81 (patch)
treec97d367985eba2263a0a33ae021d584bcada02a8 /win/CS/Functions
parentd23ce1929a4711f9153a27f39ac30f07a1b66acd (diff)
WinGui: (WPF) Further work hooking up the new main window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4372 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Functions')
-rw-r--r--win/CS/Functions/QueryGenerator.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/win/CS/Functions/QueryGenerator.cs b/win/CS/Functions/QueryGenerator.cs
index b085626a9..85640c3bd 100644
--- a/win/CS/Functions/QueryGenerator.cs
+++ b/win/CS/Functions/QueryGenerator.cs
@@ -7,6 +7,7 @@ namespace Handbrake.Functions
{
using System;
using System.Collections.Generic;
+ using System.Collections.ObjectModel;
using System.Globalization;
using System.IO;
using System.Linq;
@@ -707,17 +708,19 @@ namespace Handbrake.Functions
}
// Audio
- task.AudioTracks = new List<AudioTrack>(frmMain.AudioSettings.AudioTracks);
+ task.AudioTracks = new ObservableCollection<AudioTrack>(frmMain.AudioSettings.AudioTracks);
// Subtitles
- task.SubtitleTracks = new List<SubtitleTrack>(frmMain.Subtitles.SubtitlesList);
+ task.SubtitleTracks = new ObservableCollection<SubtitleTrack>(frmMain.Subtitles.SubtitlesList);
// Chapters
task.IncludeChapterMarkers = frmMain.Check_ChapterMarkers.Checked;
- task.ChapterNames = new List<string>();
+ task.ChapterNames = new ObservableCollection<ChapterMarker>();
foreach (DataGridViewRow row in frmMain.data_chpt.Rows)
{
- task.ChapterNames.Add(row.Cells[1].Value.ToString());
+ int number;
+ int.TryParse(row.Cells[0].Value.ToString(), out number);
+ task.ChapterNames.Add(new ChapterMarker(number, row.Cells[1].Value.ToString()));
}
// Advanced Options