Esempio n. 1
0
        public IDevice FindTECComponent(FormChangeMode.KeyDevice key)
        {
            IDevice dev;

            if ((key.Mode == FormChangeMode.MODE_TECCOMPONENT.TEC) ||
                (key.Mode == FormChangeMode.MODE_TECCOMPONENT.ANY))
            {
                dev = m_list_tec.FirstOrDefault(tec => tec.m_id == key.Id);
            }
            else
            {
                dev = FindTECComponent(key.Id);
            }

            return(dev);
        }