]> granicus.if.org Git - handbrake/commitdiff
WinGui: Tidyup the new DetelecineFilter class
authorsr55 <sr55.hb@outlook.com>
Thu, 25 Apr 2019 13:51:47 +0000 (14:51 +0100)
committersr55 <sr55.hb@outlook.com>
Thu, 25 Apr 2019 13:51:47 +0000 (14:51 +0100)
win/CS/HandBrakeWPF/ViewModelItems/Filters/DetelecineItem.cs

index 0b98b9d7ef79ab5c6440a15011a7fd0601220af7..755edd536304b932ba033cdda766e2f87f849975 100644 (file)
@@ -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;