Ejemplo n.º 1
0
        public void NewCimpMS(SafetyArea ms)
        {
            if (tvMS.Nodes.Find(ms.Zone, true).Count() == 0)
            {
                tvMS.Nodes.Add(ms.Zone, ms.Zone);
            }

            tvMS.Nodes[ms.Zone].Nodes.Add(ms.ALARM_CLASS, ms.SA);
            tvMS.Refresh();
        }
Ejemplo n.º 2
0
 public void GetSafetyAreas()
 {
     SafetyAreas.Clear();
     foreach (CimObjectInstance c in oProject.Objects)
     {
         if (c.ClassID.Equals("SCADA_DCP_SAF"))
         {
             SafetyArea ms = new SafetyArea(c.ID, c.Description, c.ID.Substring(8));
             SafetyAreas.Add(c.ID, ms);
             NewMS?.Invoke(ms);
         }
     }
 }