Пример #1
0
        public void btnAdd_onClick(object sender, EventArgs args)
        {
            DetailViewController detailViewController = (DetailViewController)Storyboard.InstantiateViewController("DetailViewController");

            detailViewController.personList            = listPerson;
            detailViewController.tablePersonController = this;
            NavigationController.PushViewController(detailViewController, true);
        }
Пример #2
0
        //ContextualAction zum Bearbeiten der Person
        public UIContextualAction contextualEditAction(int row, UITableView tableView)
        {
            var action = UIContextualAction.FromContextualActionStyle(UIContextualActionStyle.Normal,
                                                                      "Edit",
                                                                      (UIContextualAction EditItem, UIView view, UIContextualActionCompletionHandler success) => {
                DetailViewController detailViewController  = (DetailViewController)tablePersonController.Storyboard.InstantiateViewController("DetailViewController");
                detailViewController.currentPerson         = listPersons[row];
                detailViewController.personList            = listPersons;
                detailViewController.tablePersonController = tablePersonController;
                tablePersonController.NavigationController.PushViewController(detailViewController, true);
                success(true);
            });

            action.BackgroundColor = UIColor.Orange;
            return(action);
        }
        void ReleaseDesignerOutlets()
        {
            if (btnSave != null)
            {
                btnSave.Dispose();
                btnSave = null;
            }

            if (DetailViewController != null)
            {
                DetailViewController.Dispose();
                DetailViewController = null;
            }

            if (txtIngredient1 != null)
            {
                txtIngredient1.Dispose();
                txtIngredient1 = null;
            }

            if (txtingredient2 != null)
            {
                txtingredient2.Dispose();
                txtingredient2 = null;
            }

            if (txtIngredient3 != null)
            {
                txtIngredient3.Dispose();
                txtIngredient3 = null;
            }

            if (txtIngredient4 != null)
            {
                txtIngredient4.Dispose();
                txtIngredient4 = null;
            }

            if (txtSecretIngredient != null)
            {
                txtSecretIngredient.Dispose();
                txtSecretIngredient = null;
            }
        }