Ejemplo n.º 1
0
        public void add(int num, Types_class type)
        {
            cab c;

            c.type   = type;
            c.number = num;
            cabs.Add(c);
        }
Ejemplo n.º 2
0
        public List <cab> filter(Types_class type)
        {
            List <cab> a = new List <cab>();

            foreach (cab i in cabs)
            {
                if (i.type == type)
                {
                    a.Add(i);
                }
            }
            return(a);
        }