Exemple #1
0
        public static CConduit Connect(IComp A, IComp B, string Contact)
        {
            var C = new CConduit();

            C.Connect(A, Contact);
            C.Connect(B, Contact);
            return(C);
        }
Exemple #2
0
        public static CConduit Link(IComp Comp1, String C1, String C2, IComp Comp2)
        {
            var Con = new CConduit();

            Con.Connect(Comp1, C1);
            Con.Connect(Comp2, C2);
            return(Con);
        }
Exemple #3
0
        public static CConduit MultiLink(params object[] M)
        {
            var Con = new CConduit();

            if ((M.Length % 2) > 0)
            {
                throw new Exception("Component and Port are required");
            }
            for (int i = 0; i < M.Length; i += 2)
            {
                Con.Connect(M[i] as IComp, M[i + 1] as String);
            }
            return(Con);
        }