Inheritance: UIActionSheetDelegate
Ejemplo n.º 1
0
        private void HandleEditButtonTapped(object sender, EventArgs args)
        {
            var actionSheetDelegate = new VerseEditActionSheetDelegate(this, verse);

            var actionSheet = new UIActionSheet {
                CancelButtonIndex      = 2,
                DestructiveButtonIndex = 0,
                Delegate = actionSheetDelegate,
            };

            actionSheet.Add("Delete");
            actionSheet.Add("Edit");
            actionSheet.Add("Cancel");

            actionSheet.ShowFromTabBar(AppDelegate.TabBarController.TabBar);
        }
Ejemplo n.º 2
0
        private void HandleEditButtonTapped(object sender, EventArgs args)
        {
            var actionSheetDelegate = new VerseEditActionSheetDelegate (this, verse);

            var actionSheet = new UIActionSheet {
                CancelButtonIndex = 2,
                DestructiveButtonIndex = 0,
                Delegate = actionSheetDelegate,
            };

            actionSheet.Add ("Delete");
            actionSheet.Add ("Edit");
            actionSheet.Add ("Cancel");

            actionSheet.ShowFromTabBar (AppDelegate.TabBarController.TabBar);
        }