summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-04-25 14:51:47 +0100
committersr55 <[email protected]>2019-04-25 14:51:47 +0100
commit48fea07ce86bad4f349fd153460823898a0f236b (patch)
treee5d24e3fb16a25eb73fe1a894e94c6eec264ccba /win
parent4f0a0facd0046d42a1947c7341adcee382dadf5b (diff)
WinGui: Tidyup the new DetelecineFilter class
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/ViewModelItems/Filters/DetelecineItem.cs26
1 files changed, 4 insertions, 22 deletions
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
}
}
- /// <summary>
- /// Gets or sets a value indicating whether ShowDetelecineCustom.
- /// </summary>
public bool ShowDetelecineCustom => this.CurrentTask.Detelecine == Detelecine.Custom;
- /// <summary>
- /// Gets DetelecineOptions.
- /// </summary>
- public IEnumerable<Detelecine> DetelecineOptions
- {
- get
- {
- return EnumHelper<Detelecine>.GetEnumList();
- }
- }
+ public IEnumerable<Detelecine> DetelecineOptions => EnumHelper<Detelecine>.GetEnumList();
- /// <summary>
- /// Gets or sets CustomDetelecine.
- /// </summary>
public string CustomDetelecine
{
get
@@ -101,12 +89,6 @@ namespace HandBrakeWPF.ViewModelItems.Filters
this.CustomDetelecine = preset.Task.CustomDetelecine;
}
- /// <summary>
- /// Update all the UI controls based on the encode task passed in.
- /// </summary>
- /// <param name="task">
- /// The task.
- /// </param>
public void UpdateTask(EncodeTask task)
{
this.CurrentTask = task;