// ----

        public List <PanelConnectionPresentation> GetConnections(PanelPresentation panelPresentation)
        {
            List <PanelConnectionPresentation> connections = new List <PanelConnectionPresentation>();

            foreach (PanelConnectionPresentation connectionPresentation in PanelConnections)
            {
                if (connectionPresentation.First.Equals(panelPresentation))
                {
                    connections.Add(connectionPresentation);
                }
            }

            return(connections);
        }
예제 #2
0
        // -------- Access --------

        public PanelConnectionPresentation(PanelPresentation first, PanelPresentation second)
        {
            First  = first;
            Second = second;
        }