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); }); }
public override bool Send(Message message) { Messages.Add (message); try { client.Message (message.To, message.Body); } catch (Exception) { return false; } return true; }