示例#1
0
        public UIActionSheet(string title, IUIActionSheetDelegate del, string cancelTitle, string destroy, params string [] other)
            : this(title, del, null, null, (string)null)
        {
            if (destroy != null)
            {
                DestructiveButtonIndex = AddButton(destroy);
            }

            if (other == null)
            {
                if (cancelTitle != null)
                {
                    CancelButtonIndex = AddButton(cancelTitle);
                }
                return;
            }

            foreach (string b in other)
            {
                if (b != null)
                {
                    AddButton(b);
                }
            }

            if (cancelTitle != null)
            {
                CancelButtonIndex = AddButton(cancelTitle);
            }
        }
示例#2
0
        public UIActionSheet(string title, IUIActionSheetDelegate del, string cancelTitle, string destroy, params string [] other)
            : this(title, del, null, null, (string) null)
        {
            if (destroy != null)
                DestructiveButtonIndex = AddButton (destroy);

            if (other == null) {
                if (cancelTitle != null)
                    CancelButtonIndex = AddButton (cancelTitle);
                return;
            }

            foreach (string b in other){
                if (b != null)
                    AddButton (b);
            }

            if (cancelTitle != null)
                CancelButtonIndex = AddButton (cancelTitle);
        }
示例#3
0
 public UIActionSheet(string title, IUIActionSheetDelegate del)
     : this(title, del, null, null, (string) null)
 {
 }
示例#4
0
 public UIActionSheet(string title, IUIActionSheetDelegate del)
     : this(title, del, null, null, (string)null)
 {
 }