public override void ViewDidLoad() { base.ViewDidLoad(); _model = new ChatModel(); _model.Messages.CollectionChanged += Messages_CollectionChanged; _model.Connect(); _source = new TableSource(_model.Messages); MessagesTable.Source = _source; // Perform any additional setup after loading the view, typically from a nib. }
partial void ReconnectTouch(NSObject sender) { _model.Connect(); }