namespace VideoBrowser.Models
{
using System.Collections.ObjectModel;
using System.Windows;
using VideoBrowser.Controls.CefSharpBrowser;
using VideoBrowser.Controls.CefSharpBrowser.Models;
using VideoBrowser.Resources;
using VideoBrowser.ViewModels;
using VideoBrowser.Views;
///
/// Defines the .
///
internal class DownloadQueueButton : CreateTabAddInButton
{
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The downloadItemModels.
internal DownloadQueueButton(ObservableCollection downloadItemModels) : base("Downloads", Icons.FolderDownload)
{
this.DownloadQueueViewModel = new DownloadQueueViewModel(downloadItemModels);
this.ToolTip = "Show downloads queue";
}
#endregion Constructors
#region Properties
///
/// Gets the DownloadQueueViewModel.
///
public DownloadQueueViewModel DownloadQueueViewModel { get; }
#endregion Properties
#region Methods
///
/// The CreateView.
///
/// The .
protected override UIElement CreateView()
{
var downloadQueueView = new DownloadQueueView { DataContext = this.DownloadQueueViewModel };
return downloadQueueView;
}
#endregion Methods
}
}