public void UpdateAttachment(SignalAttachment sa) { if (Collection != null) { IMessageView m = Collection.GetMessageByDbId(sa.Message.Id); if (m != null) { var attachment = FindElementByName <Attachment>(m.AsFrameworkElement(), "Attachment"); attachment.HandleUpdate(sa); } } }
public void UpdateMessageBox(SignalMessage updatedMessage) { if (Collection != null) { IMessageView m = Collection.GetMessageByDbId(updatedMessage.Id); if (m != null) { var attachment = FindElementByName <Attachment>(m.AsFrameworkElement(), "Attachment"); m.HandleUpdate(updatedMessage); } } }