void HandleCategorySelected (Category category) { var detailView = new ProfileCategoryDetailController(View.Frame); detailView.BindTo(category); NavigationController.PushViewController(detailView, true); }
void OnCategorySelected (Category category) { if (CategorySelected == null) return; CategorySelected (category); }
public void BindTo (Category category) { if (category == null) return; TitleLabel.Text = category.Title; Title = category.Title; Icon.Image = UIImage.FromFile (category.IconFile); }