Esempio n. 1
0
        public Mechanism[] GetMechanisms()
        {
            ElementList elements = SelectElements("mechanism");

            Mechanism[] items = new Mechanism[elements.Count];
            int i=0;
            foreach (Element e in elements)
            {
                items[i] = (Mechanism) e;
                i++;
            }
            return items;
        }
Esempio n. 2
0
        public Mechanism[] GetMechanisms()
        {
            ElementList elements = SelectElements("mechanism");

            Mechanism[] items = new Mechanism[elements.Count];
            int         i     = 0;

            foreach (Element e in elements)
            {
                items[i] = (Mechanism)e;
                i++;
            }
            return(items);
        }