Table of Contents

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

IEnumerable<IFavoriteItem>

Name

public string Name { get; }

Property Value

string

Methods

Add(params IFavoriteItem[])

public virtual void Add(params IFavoriteItem[] ts)

Parameters

ts IFavoriteItem[]

Create()

public virtual IFavoriteItem Create()

Returns

IFavoriteItem

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

bool

Save(out string)

public virtual bool Save(out string message)

Parameters

message string

Returns

bool

Events

CollectionChanged

public event EventHandler CollectionChanged

Event Type

EventHandler