Example #1
0
        public List <CInfoAlarmeAffichee> GetAlarmesPourElement(CElementDeSchemaReseau element)
        {
            List <CInfoAlarmeAffichee>    lst  = new List <CInfoAlarmeAffichee>();
            CInfoElementDeSchemaSupervise info = null;

            if (m_dicElementDeSchemaToInfoSupervision.TryGetValue(element.Id, out info))
            {
                foreach (int nId in info.GetIdsAlarmesEnCours())
                {
                    CInfoAlarmeAffichee alarme = null;
                    if (m_dicAlarmes.TryGetValue(nId, out alarme))
                    {
                        lst.Add(alarme);
                    }
                }
            }
            return(lst);
        }