Last change
on this file since 4068 was
4068,
checked in by swagner, 14 years ago
|
Sorted usings and removed unused usings in entire solution (#1094)
|
File size:
595 bytes
|
Line | |
---|
1 |
|
---|
2 | namespace Netron.Diagramming.Core {
|
---|
3 | class BindConnectorsCommand : Command {
|
---|
4 | IConnector parent;
|
---|
5 | IConnector child;
|
---|
6 |
|
---|
7 | public override void Redo() {
|
---|
8 | parent.AttachConnector(child);
|
---|
9 | }
|
---|
10 | public override void Undo() {
|
---|
11 | parent.DetachConnector(child);
|
---|
12 | }
|
---|
13 |
|
---|
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;
|
---|
22 | }
|
---|
23 | #endregion
|
---|
24 |
|
---|
25 | }
|
---|
26 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.