C# Class WinStoreGridApp.Data.SampleDataSource

Creates a collection of groups and items with hard-coded content. SampleDataSource initializes with placeholder data rather than live production data so that sample data is provided at both design-time and run-time.
显示文件 Open project: beginor/practice

Public Methods

Method Description
GetGroup ( string uniqueId ) : SampleDataGroup
GetGroups ( string uniqueId ) : IEnumerable
GetItem ( string uniqueId ) : SampleDataItem
SampleDataSource ( ) : System

Method Details

GetGroup() public static method

public static GetGroup ( string uniqueId ) : SampleDataGroup
uniqueId string
return SampleDataGroup

GetGroups() public static method

public static GetGroups ( string uniqueId ) : IEnumerable
uniqueId string
return IEnumerable

GetItem() public static method

public static GetItem ( string uniqueId ) : SampleDataItem
uniqueId string
return SampleDataItem

SampleDataSource() public method

public SampleDataSource ( ) : System
return System