Exemplo n.º 1
0
        public void connectDestJack(PatchPanel _destPanel)
        {
            destPanel = _destPanel;
            destEnd   = destPanel.ConnectionPoint;
            destPanel.connectLine(this);                            //connect line & dest panel in view

            connector = srcPanel.makeConnection(destPanel);         //connect panels in model, get model connector
            if (connector != null)
            {
                connector.setLine(this);                                //and set this as connector's view
            }
        }
Exemplo n.º 2
0
//- connections ---------------------------------------------------------------

        public void connectSourceJack(PatchPanel _srcPanel)
        {
            srcPanel = _srcPanel;
            srcEnd   = srcPanel.ConnectionPoint;
            srcPanel.connectLine(this);                     //connect line & source panel in view
        }