From 48fea07ce86bad4f349fd153460823898a0f236b Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 25 Apr 2019 14:51:47 +0100 Subject: WinGui: Tidyup the new DetelecineFilter class --- .../ViewModelItems/Filters/DetelecineItem.cs | 26 ++++------------------ 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'win') diff --git a/win/CS/HandBrakeWPF/ViewModelItems/Filters/DetelecineItem.cs b/win/CS/HandBrakeWPF/ViewModelItems/Filters/DetelecineItem.cs index 0b98b9d7e..755edd536 100644 --- a/win/CS/HandBrakeWPF/ViewModelItems/Filters/DetelecineItem.cs +++ b/win/CS/HandBrakeWPF/ViewModelItems/Filters/DetelecineItem.cs @@ -34,6 +34,9 @@ namespace HandBrakeWPF.ViewModelItems.Filters public EncodeTask CurrentTask { get; private set; } + + public DetelecineItem DetelecineFilter { get; set; } + public Detelecine SelectedDetelecine { get @@ -53,25 +56,10 @@ namespace HandBrakeWPF.ViewModelItems.Filters } } - /// - /// Gets or sets a value indicating whether ShowDetelecineCustom. - /// public bool ShowDetelecineCustom => this.CurrentTask.Detelecine == Detelecine.Custom; - /// - /// Gets DetelecineOptions. - /// - public IEnumerable DetelecineOptions - { - get - { - return EnumHelper.GetEnumList(); - } - } + public IEnumerable DetelecineOptions => EnumHelper.GetEnumList(); - /// - /// Gets or sets CustomDetelecine. - /// public string CustomDetelecine { get @@ -101,12 +89,6 @@ namespace HandBrakeWPF.ViewModelItems.Filters this.CustomDetelecine = preset.Task.CustomDetelecine; } - /// - /// Update all the UI controls based on the encode task passed in. - /// - /// - /// The task. - /// public void UpdateTask(EncodeTask task) { this.CurrentTask = task; -- cgit v1.2.3