Changeset 4068 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/UndoRedo/Commands/BindConnectorsCommand.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/UndoRedo/Commands/BindConnectorsCommand.cs
r2768 r4068 1 using System;2 using System.Collections.Generic;3 using System.Text;4 1 5 namespace Netron.Diagramming.Core 6 { 7 class BindConnectorsCommand : Command 8 { 9 IConnector parent; 10 IConnector child; 2 namespace Netron.Diagramming.Core { 3 class BindConnectorsCommand : Command { 4 IConnector parent; 5 IConnector child; 11 6 12 public override void Redo() 13 { 14 parent.AttachConnector(child); 15 } 16 public override void Undo() 17 { 18 parent.DetachConnector(child); 19 } 7 public override void Redo() { 8 parent.AttachConnector(child); 9 } 10 public override void Undo() { 11 parent.DetachConnector(child); 12 } 20 13 21 #region Constructor 22 ///<summary> 23 ///Default constructor 24 ///</summary> 25 public BindConnectorsCommand(IController controller, IConnector parent, IConnector child) : base(controller) 26 { 27 this.parent = parent; 28 this.child = child; 29 } 30 #endregion 31 14 #region Constructor 15 ///<summary> 16 ///Default constructor 17 ///</summary> 18 public BindConnectorsCommand(IController controller, IConnector parent, IConnector child) 19 : base(controller) { 20 this.parent = parent; 21 this.child = child; 32 22 } 23 #endregion 24 25 } 33 26 }
Note: See TracChangeset
for help on using the changeset viewer.