Last change
on this file since 2768 was
2768,
checked in by mkommend, 14 years ago
|
added solution folders and sources for the netron library (ticket #867)
|
File size:
799 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 |
|
---|
5 | namespace Netron.Diagramming.Core
|
---|
6 | {
|
---|
7 | class DetachConnectorCommand : Command
|
---|
8 | {
|
---|
9 | IConnector parent;
|
---|
10 | IConnector child;
|
---|
11 |
|
---|
12 | public override void Redo()
|
---|
13 | {
|
---|
14 | parent.DetachConnector(child);
|
---|
15 | }
|
---|
16 | public override void Undo()
|
---|
17 | {
|
---|
18 | parent.AttachConnector(child);
|
---|
19 | }
|
---|
20 |
|
---|
21 | #region Constructor
|
---|
22 | ///<summary>
|
---|
23 | ///Default constructor
|
---|
24 | ///</summary>
|
---|
25 | public DetachConnectorCommand(IController controller, IConnector parent, IConnector child) : base(controller)
|
---|
26 | {
|
---|
27 | this.parent = parent;
|
---|
28 | this.child = child;
|
---|
29 | }
|
---|
30 | #endregion
|
---|
31 |
|
---|
32 | }
|
---|
33 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.