C# Class Orchestra.Services.RecentlyUsedItemsService

Inheritance: IRecentlyUsedItemsService
显示文件 Open project: WildGums/Orchestra

Public Methods

Method Description
AddItem ( RecentlyUsedItem item ) : void

Adds the item to the list of recently used items.

PinItem ( string name ) : void

Pins the item with the specified name.

RecentlyUsedItemsService ( IXmlSerializer xmlSerializer, IFileService fileService ) : System
RemoveItem ( RecentlyUsedItem item ) : void

Removes the item from the list of recently used items.

UnpinItem ( string name ) : void

Unpins the item with the specified name.

Private Methods

Method Description
AddSorted ( List collection, RecentlyUsedItem item ) : void
IsAvailableInCollection ( List collection, string name ) : bool
Load ( ) : void
RemoveItemFromCollection ( List collection, string name ) : void
Save ( ) : void

Method Details

AddItem() public method

Adds the item to the list of recently used items.
The is null.
public AddItem ( RecentlyUsedItem item ) : void
item Orchestra.Models.RecentlyUsedItem The item.
return void

PinItem() public method

Pins the item with the specified name.
The is null or whitespace.
public PinItem ( string name ) : void
name string The name.
return void

RecentlyUsedItemsService() public method

public RecentlyUsedItemsService ( IXmlSerializer xmlSerializer, IFileService fileService ) : System
xmlSerializer IXmlSerializer
fileService IFileService
return System

RemoveItem() public method

Removes the item from the list of recently used items.
The is null.
public RemoveItem ( RecentlyUsedItem item ) : void
item Orchestra.Models.RecentlyUsedItem The item.
return void

UnpinItem() public method

Unpins the item with the specified name.
The is null or whitespace.
public UnpinItem ( string name ) : void
name string The name.
return void