Ejemplo n.º 1
0
 public ConfluenceSearch(ConfluenceConnector confluenceConnector, ConfluenceUpload confluenceUpload)
 {
     _confluenceConnector = confluenceConnector;
     _confluenceUpload    = confluenceUpload;
     DataContext          = this;
     InitializeComponent();
     if (ConfluenceConfig.SearchSpaceKey == null)
     {
         SpaceComboBox.SelectedItem = Spaces.FirstOrDefault();
     }
     else
     {
         foreach (var space in Spaces)
         {
             if (space.Key.Equals(ConfluenceConfig.SearchSpaceKey))
             {
                 SpaceComboBox.SelectedItem = space;
             }
         }
     }
 }
 public ConfluenceTreePicker(ConfluenceConnector confluenceConnector, ConfluenceUpload confluenceUpload)
 {
     _confluenceConnector = confluenceConnector;
     _confluenceUpload    = confluenceUpload;
     InitializeComponent();
 }
 public ConfluencePagePicker(ConfluenceUpload confluenceUpload, List <Page> pagesToPick)
 {
     _confluenceUpload = confluenceUpload;
     DataContext       = pagesToPick;
     InitializeComponent();
 }