本文整理汇总了C#中Interfaces.AddItemToRotator2方法的典型用法代码示例。如果您正苦于以下问题:C# Interfaces.AddItemToRotator2方法的具体用法?C# Interfaces.AddItemToRotator2怎么用?C# Interfaces.AddItemToRotator2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Interfaces
的用法示例。
在下文中一共展示了Interfaces.AddItemToRotator2方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadContainer
/// <summary>
/// Loads individual tiles into their container
/// </summary>
/// <param name="ctlRotator">The paging control to display the tile in</param>
/// <param name="rotatorIndex">The index of the Rotator to insert the tile into</param>
/// <param name="containerControlPath">The path of the control to load tiles into</param>
/// <param name="chunk">The list of Tiles to be added into the RotatorControl</param>
/// <param name="numberTilesPerPage">The number of Tiles to display on a given page</param>
/// <param name="counter">Used to set the ID of the rotator panel</param>
protected void LoadContainer(Interfaces.IRotatorControl ctlRotator, int rotatorIndex, string containerControlPath, List<Tile> chunk, int numberTilesPerPage, int counter)
{
var container = (Container)LoadControl(containerControlPath);
container.NumberOfTilesPerPage = numberTilesPerPage;
container.ID = "rotator" + rotatorIndex + "_container" + counter;
container.ClientIDMode = ClientIDMode.Static;
container.ContainerID = "container" + rotatorIndex;
container.OnTileSort += TileSort;
container.BuildDockZone();
container.LoadControlsToContent(chunk);
if (rotatorIndex == 1)
ctlRotator.AddItemToRotator1(container);
else if (rotatorIndex == 2)
ctlRotator.AddItemToRotator2(container);
}