Esempio n. 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 });
 }
Esempio n. 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 });
 }
Esempio n. 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);
 }
Esempio n. 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);
 }