Beispiel #1
0
        /// <summary>
        /// Opens the publicaion sorting panel.
        /// </summary>
        /// <param name="o">O.</param>
        /// <param name="e">E.</param>
        private void OpenPublicaionSortingPanel(object o, EventArgs e)
        {
            PublicationSortingController publicationSortingController = new PublicationSortingController();

            publicationSortingController.CurPublicationListController = this;
            UIPopoverController sortingPop = new UIPopoverController(publicationSortingController);

            //Dismiss current popover controller if it exist
            AppDisplayUtil.Instance.SetPopoverController(sortingPop);

            sortingPop.PresentFromBarButtonItem((UIBarButtonItem)o, UIPopoverArrowDirection.Any, true);
            sortingPop.SetPopoverContentSize(new CGSize(320, 400), true);

            publicationList = PublicationUtil.Instance.GetPublicationOffline();
            publicationSortingController.SetEditing(true, true);
        }
 public PublicationSortingSource(UIViewController controller)
 {
     cachedPublications = PublicationUtil.Instance.GetPublicationOffline();
     curViewController  = (PublicationSortingController)controller;
 }