diff options
author | sr55 <[email protected]> | 2019-01-27 20:46:19 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-01-27 20:46:42 +0000 |
commit | afda7a3fce7446ef55dcd7df78d9e5311fee5fa1 (patch) | |
tree | 54bab5d9cbd25aeb31a9439d7ce02cfd866af30b /win/CS/HandBrakeWPF/Services | |
parent | 444a1060e6067690cc25f8271ae8794dc93f9a1d (diff) |
WinGui: Basic implementation of Queue Up/Down Buttons. Does not yet handle post selection.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/Interfaces/IQueueProcessor.cs | 3 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Queue/Interfaces/IQueueProcessor.cs b/win/CS/HandBrakeWPF/Services/Queue/Interfaces/IQueueProcessor.cs index 33dc42fe2..90723c7a8 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/Interfaces/IQueueProcessor.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/Interfaces/IQueueProcessor.cs @@ -10,6 +10,7 @@ namespace HandBrakeWPF.Services.Queue.Interfaces
{
using System;
+ using System.Collections.ObjectModel;
using System.ComponentModel;
using HandBrakeWPF.Services.Queue.Model;
@@ -77,7 +78,7 @@ namespace HandBrakeWPF.Services.Queue.Interfaces /// <summary>
/// Gets The current queue.
/// </summary>
- BindingList<QueueTask> Queue { get; }
+ ObservableCollection<QueueTask> Queue { get; }
#endregion
diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs index 5e4726bcb..ec0867f2a 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs @@ -11,6 +11,7 @@ namespace HandBrakeWPF.Services.Queue {
using System;
using System.Collections.Generic;
+ using System.Collections.ObjectModel;
using System.ComponentModel;
using System.IO;
using System.Linq;
@@ -46,7 +47,7 @@ namespace HandBrakeWPF.Services.Queue #region Constants and Fields
private static readonly object QueueLock = new object();
private readonly IUserSettingService userSettingService;
- private readonly BindingList<QueueTask> queue = new BindingList<QueueTask>();
+ private readonly ObservableCollection<QueueTask> queue = new ObservableCollection<QueueTask>();
private readonly string queueFile;
private bool clearCompleted;
@@ -174,7 +175,7 @@ namespace HandBrakeWPF.Services.Queue /// <summary>
/// Gets The current queue.
/// </summary>
- public BindingList<QueueTask> Queue
+ public ObservableCollection<QueueTask> Queue
{
get
{
|