public void RowSelected(UITableView tableView, NSIndexPath indexPath) { Conversation conv = ConversationDatabase.GetConversationAtIndex (indexPath.Row); if (conv != null) { ChatViewController cvc = new ChatViewController(conv); cvc.SenderAccount = account; this.NavigationController.PushViewController(cvc, true); } }
partial void UIButton131_TouchUpInside(UIButton sender) { Contact ctct = ContactDatabase.GetContact("*****@*****.**"); if (ctct == null) { ContactDatabase.AddContact("*****@*****.**", "openflow2", "*****@*****.**"); ctct = ContactDatabase.GetContact("*****@*****.**"); } string[] listOfAllAddresses = new string[2]; listOfAllAddresses[0] = ctct.Address.Address; listOfAllAddresses[1] = account.Address.Address; Conversation conv = ConversationDatabase.GetConversationForParticipants(listOfAllAddresses); if (conv != null) { ChatViewController cvc = new ChatViewController(conv); cvc.SenderAccount = account; this.NavigationController.PushViewController(cvc, true); } }