Esempio n. 1
0
    void BtnDelClick()
    {
        if (m_curCirObj != null)
        {
            LabEnv.ClearAllHighlightLabObj();

            m_curCirObj.DestroyLabObject();
        }
        WndManager.DestoryWnd <ClickMenuWnd>();
        NDCircuitObject.CreateCirCuit();
    }
Esempio n. 2
0
    /// <summary>
    /// 连接导线
    /// </summary>
    public void AddLinkLine(EleLine line)
    {
        if (line == null)
        {
            return;
        }
        if (m_linkEleLine.Contains(line) == false)
        {
            m_linkEleLine.Add(line);
        }
        bool IslinkLine = CheckLinkLine();

        ShowLeap(IslinkLine);

        NDCircuitObject.CreateCirCuit();
    }
Esempio n. 3
0
    /// <summary>
    /// 移除导线
    /// </summary>
    public void RemoveLinkLine(EleLine line)
    {
        if (line == null)
        {
            return;
        }
        if (m_linkEleLine.Contains(line) == true)
        {
            m_linkEleLine.Remove(line);
        }
        //line.RemoveLinkLeap(this);

        bool IslinkLine = CheckLinkLine();

        ShowLeap(IslinkLine);
        NDCircuitObject.CreateCirCuit();
    }