Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SortableBindingList{T}"/> class with the specified list.
 /// </summary>
 /// <param name="enumerable">A collection of items to be contained in this <see cref="SortableBindingList{T}"/>.</param>
 /// <param name="undoRedo">The undo/redo manager to associate with this collection.</param>
 public SortableBindingList(IEnumerable <T> enumerable, GMUndoRedo undoRedo = null) : base(enumerable.ToList())
 {
     this.undoRedo = undoRedo;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SortableBindingList{T}"/> class using default values.
 /// </summary>
 /// <param name="undoRedo">The undo/redo manager to associate with this collection.</param>
 public SortableBindingList(GMUndoRedo undoRedo = null)
 {
     this.undoRedo = undoRedo;
 }