private void OnMessageData2Received(string obj)
 {
     using (Messages.AcquireLock())
     {
         Messages.Add(obj);
     }
 }
        private void OnMessageDataReceived(XDocument messageDoc)
        {
            if (messageDoc != null && messageDoc.Root != null)
            {
                using (Messages.AcquireLock())
                {
                    Messages.Add(messageDoc.ToString());
                }
            }

            if (!IsSelected)
            {
                IsFlashing = true;
            }
        }