Example #1
0
 /// <summary>
 /// Add the redo/undo closures
 /// </summary>
 /// <param name="redo">redo closure</param>
 /// <param name="undo">undo closure</param>
 public void Add(Closure redo, Closure undo)
 {
     _toDoList.Add(new Closure[] { redo, undo });
 }
Example #2
0
 /// <summary>
 /// Add the redo/undo closures
 /// </summary>
 /// <param name="redo">redo closure</param>
 /// <param name="undo">undo closure</param>
 public void Add(Closure redo, Closure undo)
 {
     _toDoList.Add(new Closure[] { redo, undo });
 }
Example #3
0
 /// <summary>
 /// Creates an instance of th class
 /// </summary>
 /// <param name="name">name of the command</param>
 /// <param name="redo">redo closure</param>
 /// <param name="undo">undo closure</param>
 public Command(string name, Closure redo, Closure undo)
 {
     Name = name;
     this.Add(redo, undo);
 }
Example #4
0
 /// <summary>
 /// Creates an instance of th class
 /// </summary>
 /// <param name="name">name of the command</param>
 /// <param name="redo">redo closure</param>
 /// <param name="undo">undo closure</param>
 public Command(string name, Closure redo, Closure undo)
 {
     Name = name;
     this.Add(redo, undo);
 }