void HandleOnEvent(Snuggle.Common.ISession session, Message message)
        {
            items.Add (new MessageTableViewItem () { Message = message } );

            InvokeOnMainThread(delegate{
                tblMessages.ReloadData ();
                tblMessages.ScrollToRow (NSIndexPath.FromRowSection(items.Count - 1, 0), UITableViewScrollPosition.Bottom, true);
            });
        }
Exemple #2
0
 public override bool Send(Message message)
 {
     Messages.Add (message);
     try {
         client.Message (message.To, message.Body);
     } catch (Exception) {
         return false;
     }
     return true;
 }