ClearCanvas.ImageViewer.DisplaySet.SetMemento C# (CSharp) Method

SetMemento() public method

Restores the state of an object.
The implementation of IMemorable.SetMemento should return the object to the original state captured by IMemorable.CreateMemento.
public SetMemento ( object memento ) : void
memento object The object that was /// originally created with .
return void
		public virtual void SetMemento(object memento)
		{
			DisplaySetMemento displaySetMemento = (DisplaySetMemento) memento;

			if (displaySetMemento.Comparer != null)
				this.PresentationImages.Sort(displaySetMemento.Comparer);
		}