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); }
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); }
public UIActionSheet(string title, UIActionSheetDelegate del) : this(title, del as IUIActionSheetDelegate, null, null, (string) null) { }
public UIActionSheet(string title, UIActionSheetDelegate del, string cancelTitle, string destroy, params string [] other) : this(title, del as IUIActionSheetDelegate, cancelTitle, destroy, other) { }
public UIActionSheet(string title, UIActionSheetDelegate del) : this(title, del as IUIActionSheetDelegate, null, null, (string)null) { }
public UIActionSheet([Optional] string title, [Optional] UIActionSheetDelegate @delegate, [Optional] string cancelButtonTitle, [Optional] string destructiveButtonTitle) { }