public override void Initialised(Document document)
 {
     if (document != null)
     {
         vstoDocument= ((ApplicationFactory)VstoFactory).GetVstoObject(document);
         vstoDocument.SelectionChange += VstoDocumentOnSelectionChange;
         RibbonVisible = true;
     }
 }
Exemple #2
0
 public override void Initialised(Document document)
 {
     if (document != null)
     {
         vstoDocument = ((ApplicationFactory)VstoFactory).GetVstoObject(document);
         vstoDocument.SelectionChange += VstoDocumentOnSelectionChange;
         RibbonVisible = true;
     }
 }
        public void Initialised(object context)
        {
            document = context as Document;

            if (document != null)
            {
                vstoDocument = ((ApplicationFactory)VstoFactory).GetVstoObject(document);
                vstoDocument.SelectionChange += VstoDocumentOnSelectionChange;
            }
        }
        public void Initialised(object context)
        {
            document = context as Document;

            if (document != null)
            {
                vstoDocument = ((ApplicationFactory)VstoFactory).GetVstoObject(document);
                vstoDocument.SelectionChange += VstoDocumentOnSelectionChange;
            }
        }