From aea2c5f0a32428671182a5e9d680ab4c016fce2c Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 8 Jul 2012 15:57:58 +0000 Subject: WinGui: Initial work to restore queue editing functionality. (Note, it's not complete yet) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4821 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs index cbd6e8441..586167840 100644 --- a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs @@ -226,6 +226,20 @@ namespace HandBrakeWPF.ViewModels this.NotifyOfPropertyChange(() => this.Task); } + /// + /// Update all the UI controls based on the encode task passed in. + /// + /// + /// The task. + /// + public void UpdateTask(EncodeTask task) + { + this.Task = task; + + this.NotifyOfPropertyChange(() => this.Task.IncludeChapterMarkers); + this.NotifyOfPropertyChange(() => this.Task.ChapterNames); + } + /// /// Set the Source Chapters List /// -- cgit v1.2.3