Exemplo n.º 1
0
        /// <summary>
        /// 연결된 <see cref="LineConnector"/>를 삭제합니다.
        /// </summary>
        /// <param name="lineConnector"></param>
        public void DeleteConnectedLine(LineConnector lineConnector)
        {
            if (!lineCollection.Contains(lineConnector))
            {
                return;
            }

            LineLayer.Remove(lineConnector.Line);
            lineCollection.Remove(lineConnector);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 임시로 연결된 <see cref="LineConnectorBase"/>를 삭제합니다.
        /// </summary>
        public void PopPendingConnectedLine()
        {
            if (!HasPendingConnectedLine())
            {
                return;
            }

            var connector = pendingLines.Pop();

            connector.Updated -= Connector_Updated;

            LineLayer.Remove(connector.Line);
            lineCollection.Remove(connector);

            connector.Release();
        }