Example #1
0
            public static void test3()
            {
                Locker l2 = new Locker();

                CrossBar t1  = new CrossBar(10, "referenceTest", "1", new Size(0, 0, 0), false, 0, Color.white);
                Cleat    nul = new Cleat();


                l2.addComponent(t1);
                l2.addComponent(nul);

                foreach (CatalogueComponents c in l2.componentsList)
                {
                    Console.WriteLine(c.code);
                }
            }
Example #2
0
            public static void isActive()
            {
                Locker locker = new Locker();

                CrossBar c1  = new CrossBar();
                CrossBar c2  = new CrossBar();
                CrossBar c3  = new CrossBar();
                CrossBar c4  = new CrossBar();
                CrossBar c5  = new CrossBar();
                CrossBar c6  = new CrossBar();
                CrossBar c7  = new CrossBar();
                CrossBar c8  = new CrossBar();
                Pannel   p1  = new Pannel();
                Pannel   p2  = new Pannel();
                Pannel   p3  = new Pannel();
                Pannel   p4  = new Pannel();
                Pannel   p5  = new Pannel();
                Cleat    cl1 = new Cleat();
                Cleat    cl2 = new Cleat();
                Cleat    cl3 = new Cleat();
                Cleat    cl4 = new Cleat();



                locker.addComponent(new List <CatalogueComponents>()
                {
                    c1, c2, c3, c3, c4, c5, c6, c7, c8,
                    cl1, cl2, cl3, cl4,
                    p1, p2, p3, p4, p5
                });

                foreach (CatalogueComponents lc in locker.componentsList)
                {
                    Console.WriteLine(lc);
                }
                locker.isComplete();
            }