コード例 #1
0
        /// <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.DeleteConnection(copy);
            m_ConnectionVM = copy;

            //m_FlowGraphVM.DeleteConnection(m_ConnectionVM);
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 public void Redo()
 {
     m_FlowGraphVM.DeleteConnection(m_ConnectionVM);
 }