diff options
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Model/Encoding/ChapterMarker.cs | 22 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs | 2 |
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
}
}
|