You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
using MediaBrowser.Model.Dto;
|
|
using MediaBrowser.UI.Controls;
|
|
|
|
namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|
{
|
|
/// <summary>
|
|
/// Class BaseDetailsControl
|
|
/// </summary>
|
|
public abstract class BaseDetailsControl : BaseUserControl
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="BaseDetailsControl" /> class.
|
|
/// </summary>
|
|
protected BaseDetailsControl()
|
|
{
|
|
DataContext = this;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The _item
|
|
/// </summary>
|
|
private BaseItemDto _item;
|
|
/// <summary>
|
|
/// Gets or sets the item.
|
|
/// </summary>
|
|
/// <value>The item.</value>
|
|
public BaseItemDto Item
|
|
{
|
|
get { return _item; }
|
|
|
|
set
|
|
{
|
|
_item = value;
|
|
OnPropertyChanged("Item");
|
|
OnItemChanged();
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Called when [item changed].
|
|
/// </summary>
|
|
protected abstract void OnItemChanged();
|
|
}
|
|
}
|