C# Class Microsoft.Silverlight.Testing.Client.SlideManager

A helper class to managing sets of slides.
显示文件 Open project: garyjohnson/wpnest Class Usage Examples

Public Methods

Method Description
Add ( ) : void

Adds a slide or an array of slides to the managed slide set.

InsertAfter ( LinkedListNode before, Slide newSlide ) : LinkedListNode

Insert a slide after a provided linked list node.

InsertAfter ( Slide before, Slide newSlide ) : LinkedListNode

Manages a new slide, inserting it after an existing slide node.

InsertFirst ( Slide newSlide ) : LinkedListNode

Inserts a slide as the first in the linked list.

MoveTo ( Slide slide ) : void

Moves to a specific slide, moving the others to the appropriate direction on screen.

Next ( ) : void

Move to the next slide.

Previous ( ) : void

Move to the previous slide.

Remove ( Slide slide ) : void

Remove a slide from management.

SlideManager ( ) : System

Initializes a new instance of the SlideManager class.

Private Methods

Method Description
InitializePosition ( Slide slide, bool isFirst ) : void

Initializes the position of the slide based on location.

Move ( bool forward ) : void

Move in a direction.

Method Details

Add() public method

Adds a slide or an array of slides to the managed slide set.
public Add ( ) : void
return void

InsertAfter() public method

Insert a slide after a provided linked list node.
public InsertAfter ( LinkedListNode before, Slide newSlide ) : LinkedListNode
before LinkedListNode The node to insert after.
newSlide Slide The new slide to insert.
return LinkedListNode

InsertAfter() public method

Manages a new slide, inserting it after an existing slide node.
public InsertAfter ( Slide before, Slide newSlide ) : LinkedListNode
before Slide The node to insert after.
newSlide Slide The new slide instance.
return LinkedListNode

InsertFirst() public method

Inserts a slide as the first in the linked list.
public InsertFirst ( Slide newSlide ) : LinkedListNode
newSlide Slide The new slide instance.
return LinkedListNode

MoveTo() public method

Moves to a specific slide, moving the others to the appropriate direction on screen.
public MoveTo ( Slide slide ) : void
slide Slide The slide to move to.
return void

Next() public method

Move to the next slide.
public Next ( ) : void
return void

Previous() public method

Move to the previous slide.
public Previous ( ) : void
return void

Remove() public method

Remove a slide from management.
public Remove ( Slide slide ) : void
slide Slide The slide instance.
return void

SlideManager() public method

Initializes a new instance of the SlideManager class.
public SlideManager ( ) : System
return System