コード例 #1
0
        void SetupAndShowActionSheet(DialogViewController dvc)
        {
            var section = dvc.Root [0];

            ActionSheetDelegate = new MoveActionSheetDelegate(dvc, section);

            ActionSheet = new UIActionSheet {
                CancelButtonIndex = 9,
                Delegate          = ActionSheetDelegate,
                Title             = "Move"
            };

            ActionSheet.Add("Sunday");
            ActionSheet.Add("Monday");
            ActionSheet.Add("Tuesday");
            ActionSheet.Add("Wednesday");
            ActionSheet.Add("Thursday");
            ActionSheet.Add("Friday");
            ActionSheet.Add("Saturday");
            ActionSheet.Add("Queue");
            ActionSheet.Add("Review");
            ActionSheet.Add("Cancel");

            ActionSheet.ShowFromTabBar(AppDelegate.tabBarController.TabBar);
        }
コード例 #2
0
        private void HandleEditButtonTapped(object sender, EventArgs args)
        {
            ActionSheetDelegate = new VerseEditActionSheetDelegate(this, verse);

            ActionSheet = new UIActionSheet {
                CancelButtonIndex      = 2,
                DestructiveButtonIndex = 0,
                Delegate = ActionSheetDelegate,
            };

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

            ActionSheet.ShowFromTabBar(AppDelegate.tabBarController.TabBar);
        }
コード例 #3
0
 public UIActionSheet(string title, UIActionSheetDelegate del)
     : this(title, del as IUIActionSheetDelegate, null, null, (string) null)
 {
 }
コード例 #4
0
 public UIActionSheet(string title, UIActionSheetDelegate del, string cancelTitle, string destroy, params string [] other)
     : this(title, del as IUIActionSheetDelegate, cancelTitle, destroy, other)
 {
 }
コード例 #5
0
 public UIActionSheet(string title, UIActionSheetDelegate del)
     : this(title, del as IUIActionSheetDelegate, null, null, (string)null)
 {
 }
コード例 #6
0
 public UIActionSheet(string title, UIActionSheetDelegate del, string cancelTitle, string destroy, params string [] other)
     : this(title, del as IUIActionSheetDelegate, cancelTitle, destroy, other)
 {
 }
コード例 #7
0
ファイル: UIActionSheet.cs プロジェクト: afrog33k/CocoaSharp
 public UIActionSheet([Optional] string title, [Optional] UIActionSheetDelegate @delegate, [Optional] string cancelButtonTitle, [Optional] string destructiveButtonTitle)
 {
 }