Exemplo n.º 1
0
 /// <summary>
 ///     Starts an undo batch, which is ended when this instance is disposed. Designed for use in a using statement.
 /// </summary>
 /// <param name="instance">An object that implements ISupportsUndo. The batch will call GetUndoRoot() to get the root.</param>
 /// <param name="description">The description of this batch of changes.</param>
 /// <param name="consolidateChangesForSameInstance">Should the batch consolidate changes.</param>
 public UndoBatch(ISupportsUndo instance, string description, bool consolidateChangesForSameInstance)
     : this(UndoService.Current[instance.GetUndoRoot()], description, consolidateChangesForSameInstance)
 {
 }
Exemplo n.º 2
0
		/// <summary>
		/// Starts an undo batch, which is ended when this instance is disposed. Designed for use in a using statement.
		/// </summary>
		/// <param name="instance">An object that implements ISupportsUndo. The batch will call GetUndoRoot() to get the root.</param>
		/// <param name="description">The description of this batch of changes.</param>
		/// <param name="consolidateChangesForSameInstance">Should the batch consolidate changes.</param>
		public UndoBatch(ISupportsUndo instance, string description, bool consolidateChangesForSameInstance)
			: this(UndoService.Current[instance.GetUndoRoot()], description, consolidateChangesForSameInstance) { }