public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            PhraseScreen phraseScreen = new PhraseScreen (childCategories[indexPath.Row].CategoryID, childCategories[indexPath.Row].Name);
            NavigationItem.BackBarButtonItem = new UIBarButtonItem ("Back", UIBarButtonItemStyle.Plain, null);

            this.NavigationController.PushViewController (phraseScreen, true);
        }
 public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
 {
     IList<Category> childCategories = CategoryManager.GetChildCategories (tableItems[indexPath.Row].CategoryID);
     if (childCategories.Count > 0) {
         ChildCategoryScreen childCategoryScreen = new ChildCategoryScreen(tableItems[indexPath.Row].CategoryID);
         this.categoryScreenController.NavigationController.PushViewController (childCategoryScreen, true);
     } else {
         if (tableItems [indexPath.Row].Name.Equals ("My Phrases")) {
             MyPhraseScreen myPhraseScreen = new MyPhraseScreen (tableItems [indexPath.Row].CategoryID);
             this.categoryScreenController.NavigationController.PushViewController (myPhraseScreen, true);
         } else {
             PhraseScreen phraseScreen = new PhraseScreen (tableItems[indexPath.Row].CategoryID, tableItems[indexPath.Row].Name);
             this.categoryScreenController.NavigationController.PushViewController (phraseScreen, true);
         }
     }
 }
Example #3
0
 public PhraseSource(PhraseScreen phraseController)
 {
     this.phraseController = phraseController;
     search = phraseController.SearchDisplayController;
 }