/// <summary> /// /// </summary> public void Undo() { ConnectionViewModel copy = new ConnectionViewModel(); copy.DestConnector = m_DestConnector; copy.DestConnectorHotspot = m_DestConnectorHotspot; copy.Points = m_Points; copy.SourceConnector = m_SourceConnector; copy.SourceConnectorHotspot = m_SourceConnectorHotspot; m_FlowGraphVM.AddConnection(copy); m_ConnectionVM = copy; }
/// <summary> /// /// </summary> public void Redo() { m_FlowGraphVM.AddConnection(m_ConnectionVM); }