Exemplo n.º 1
0
 public TreeBrowser(Word.Application application, SitecoreItemGetter sitecoreItemGetter)
 {
     Application = application;
     InitializeComponent();
     ControlContext.Initalize(application);
     AddRootNode(uxSupportingDocumentsList, ContentTree, "Content");
     AddRootNode(uxBrowseImages, MediaLibrary, "Media Library");
     _siteCoreItemGetter = sitecoreItemGetter;
 }
Exemplo n.º 2
0
 public void TreeBrowserWithTabSelect(Application application, SitecoreItemGetter sitecoreItemGetter, string selectedTab)
 {
     Globals.SitecoreAddin.Log("Initializing the tree browser...");
     Application = application;
     InitializeComponent();
     ControlContext.Initalize(application);
     //InitializeItems();
     //This constructor is called upon Microsoft Word startup. Initializing the items
     //will call the the Sitecore Tree. Instead, load the items only when the user tries
     //to open the Sitecore Tree.
     _siteCoreItemGetter = sitecoreItemGetter;
     Globals.SitecoreAddin.Log("Tree Browser initialized.");
 }