Example #1
0
        public override IEnumerable <IDestination> DynamicDestinations()
        {
            if (ConfluencePlugin.ConfluenceConnectorNoLogin == null || !ConfluencePlugin.ConfluenceConnectorNoLogin.IsLoggedIn)
            {
                yield break;
            }
            List <Page> currentPages = ConfluenceUtils.GetCurrentPages();

            if (currentPages == null || currentPages.Count == 0)
            {
                yield break;
            }
            foreach (Page currentPage in currentPages)
            {
                yield return(new ConfluenceDestination(currentPage));
            }
        }
Example #2
0
 public ConfluencePagePicker(ConfluenceUpload confluenceUpload)
 {
     this.confluenceUpload = confluenceUpload;
     this.DataContext      = ConfluenceUtils.GetCurrentPages();
     InitializeComponent();
 }