Class FavoriteService
- Namespace
- H.Controls.FavoriteBox
- Assembly
- H.Controls.FavoriteBox.dll
[Display(Name = "收藏夹管理")]
public class FavoriteService : BindableBase, INotifyPropertyChanged, IFavoriteService, IDataSource<IFavoriteItem>, ISplashLoad, ILoadable, ISplashSave, ISaveable
- Inheritance
-
FavoriteService
- Implements
- Inherited Members
- Extension Methods
Constructors
FavoriteService(IOptions<FavoriteOptions>)
public FavoriteService(IOptions<FavoriteOptions> options)
Parameters
options
IOptions<FavoriteOptions>
Properties
Collection
public virtual IEnumerable<IFavoriteItem> Collection { get; }
Property Value
Name
public string Name { get; }
Property Value
Methods
Add(params IFavoriteItem[])
public virtual void Add(params IFavoriteItem[] ts)
Parameters
ts
IFavoriteItem[]
Create()
public virtual IFavoriteItem Create()
Returns
Delete(params IFavoriteItem[])
public virtual void Delete(params IFavoriteItem[] ts)
Parameters
ts
IFavoriteItem[]
Load(out string)
public virtual bool Load(out string message)
Parameters
message
string
Returns
Save(out string)
public virtual bool Save(out string message)
Parameters
message
string
Returns
Events
CollectionChanged
public event EventHandler CollectionChanged