public void CheckRowStatus()
 {
     foreach (var item in Items)
     {
         item.Alarm = alarmProcessor.ProcessDevice(item);
         var row = (DataGridRow)grid.ItemContainerGenerator.ContainerFromItem(item);
         if (item.Alarm.Equals(AlarmType.NO_ALARM))
         {
             row.Background = Brushes.MediumSeaGreen;
         }
         else
         {
             row.Background = Brushes.IndianRed;
         }
     }
 }