Пример #1
0
        void CreateMenuOptions()
        {
            buttons = new List<UIBarButtonItem> ();

            taglistButton = new UIBarButtonItem (ListIcon.MakeImage(), UIBarButtonItemStyle.Plain, null);
            taglistButton.Clicked += (object sender, EventArgs e) => {
                tags = new EditTags (this.go);
                this.NavigationController.PushViewController(tags,true);
            };

            buttons.Add (taglistButton);
            if (!UserInterfaceIdiomIsPhone) {
                tagMyZoomedObject = new UIBarButtonItem (ZoomTagIcon.MakeImage(), UIBarButtonItemStyle.Plain, null);
                tagMyZoomedObject.Clicked += (object sender, EventArgs e) => AddTagInner ();
                buttons.Add (tagMyZoomedObject);
            }
            AssignPictureButton = new  UIBarButtonItem (FloppyDiscIcon.MakeImage (), UIBarButtonItemStyle.Plain, null);
            AssignPictureButton.Clicked += (object sender, EventArgs e) => AssignToWhere ();
            buttons.Add (AssignPictureButton);

            this.NavigationItem.SetRightBarButtonItems (buttons.ToArray(), true);
        }
Пример #2
0
        //        UIPopoverController uipc;
        private void CreateEditBarButton()
        {
            it = new UIBarButtonItem ();
            var tagstext = MonoTouch.Foundation.NSBundle.MainBundle.LocalizedString ("Tags", "Tags");
            it.Title = tagstext;
            //IS really info

            it.Clicked += (object sender, EventArgs e) => {
                EditTags tagedit = new EditTags(go);
                this.NavigationController.PushViewController(tagedit,true);

            };
            NavigationItem.SetRightBarButtonItem (it, true);
        }