Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/UndoRedo/Commands/DetachConnectorsCommand.cs @ 2768

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 
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace 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.