Пример #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)
 {
 }