コード例 #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.AddConnection(copy);
            m_ConnectionVM = copy;
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 public void Redo()
 {
     m_FlowGraphVM.AddConnection(m_ConnectionVM);
 }