Exemplo n.º 1
0
 private void OnMessageAppened(object sender, NotifyCollectionChangedEventArgs e)
 {
     var newMessage = e.NewItems[0] as Message;
     if (newMessage == null)
         return;
     if (string.IsNullOrEmpty(newMessage.SenderHost))
         return;
     var popup = new NotifyMessage(MessageContext.Member.UserName, newMessage.Content);
     MessengerPopup.SendMessage(popup);
 }
 public NotifyMessageViewModel(NotifyMessage content, AnimatedLocation location, Action closedAction)
 {
     this._content = content;
     this._location = location;
     this._closedAction = closedAction;
 }
 public void SendMessage(NotifyMessage msg)
 {
     QueuedMessages.Enqueue(msg);
     Start();
 }