public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { Photo photo = PhotoForIndexPath(indexPath); var controller = new PhotoViewController(); controller.Photo = photo; int photoNumber = indexPath.Row + 1; nuint photoCount = Conversation.Photos.Count; controller.Title = string.Format("{0} of {1}", photoNumber, photoCount); ShowDetailViewController(controller, this); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { Conversation conversation = ConversationForIndexPath(indexPath); if (ShouldShowConversationViewForIndexPath(indexPath)) { var controller = new ConversationViewController { Conversation = conversation }; controller.Title = conversation.Name; ShowViewController(controller, this); } else { var photo = conversation.Photos.GetItem <Photo> ((nint)conversation.Photos.Count - 1); var controller = new PhotoViewController { Photo = photo, Title = conversation.Name }; ShowDetailViewController(controller, this); } }
public override void RowSelected (UITableView tableView, NSIndexPath indexPath) { Photo photo = PhotoForIndexPath (indexPath); var controller = new PhotoViewController (); controller.Photo = photo; int photoNumber = indexPath.Row + 1; nuint photoCount = Conversation.Photos.Count; controller.Title = string.Format ("{0} of {1}", photoNumber, photoCount); ShowDetailViewController (controller, this); }
public override void RowSelected (UITableView tableView, NSIndexPath indexPath) { Conversation conversation = ConversationForIndexPath (indexPath); if (ShouldShowConversationViewForIndexPath (indexPath)) { var controller = new ConversationViewController { Conversation = conversation }; controller.Title = conversation.Name; ShowViewController (controller, this); } else { var photo = conversation.Photos.GetItem <Photo> (conversation.Photos.Count - 1); var controller = new PhotoViewController { Photo = photo, Title = conversation.Name }; ShowDetailViewController (controller, this); } }