summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-06-03 21:02:54 +0000
committersr55 <[email protected]>2012-06-03 21:02:54 +0000
commit405e3063a73d59b041871ec20400be58412c1ce9 (patch)
tree6455e9e970f9c71a7d78be94e5003a042c1b318d /win
parent455407f09c31dcfd9785a15b82f86cb8b322726f (diff)
WinGui: Fix chapter csv file import. Names were not displaying on the chapter list grid.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4711 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs22
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs2
2 files changed, 20 insertions, 4 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs
index 88f99008c..0e0eb4b12 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs
@@ -5,12 +5,19 @@
namespace HandBrake.ApplicationServices.Model.Encoding
{
+ using Caliburn.Micro;
+
/// <summary>
/// A Movie Chapter
/// </summary>
- public class ChapterMarker
+ public class ChapterMarker : PropertyChangedBase
{
/// <summary>
+ /// Backing field for chapter name
+ /// </summary>
+ private string chapterName;
+
+ /// <summary>
/// Initializes a new instance of the <see cref="ChapterMarker"/> class.
/// </summary>
public ChapterMarker()
@@ -53,6 +60,17 @@ namespace HandBrake.ApplicationServices.Model.Encoding
/// <summary>
/// Gets or sets ChapterName.
/// </summary>
- public string ChapterName { get; set; }
+ public string ChapterName
+ {
+ get
+ {
+ return this.chapterName;
+ }
+ set
+ {
+ this.chapterName = value;
+ this.NotifyOfPropertyChange(() => this.ChapterName);
+ }
+ }
}
}
diff --git a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs
index 634068142..cbd6e8441 100644
--- a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs
@@ -183,8 +183,6 @@ namespace HandBrakeWPF.ViewModels
string chapterName;
chapterMap.TryGetValue(item.ChapterNumber, out chapterName);
item.ChapterName = chapterName;
-
- // TODO force a fresh of this property
}
}