diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/QueueView.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/QueueView.xaml.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs b/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs index fbc94a7c6..aed7faf36 100644 --- a/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs @@ -168,6 +168,15 @@ namespace HandBrakeWPF.Views {
((QueueViewModel)this.DataContext).EditJob(this.mouseActiveQueueTask);
}
-
+
+ private void QueueDeleteJob_OnClick(object sender, RoutedEventArgs e)
+ {
+ Button button = sender as Button;
+ QueueTask task = button?.DataContext as QueueTask;
+ if (task != null)
+ {
+ ((QueueViewModel)this.DataContext).RemoveJob(task);
+ }
+ }
}
}
|