public override void Initialised(Document document) { if (document != null) { vstoDocument= ((ApplicationFactory)VstoFactory).GetVstoObject(document); vstoDocument.SelectionChange += VstoDocumentOnSelectionChange; RibbonVisible = true; } }
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; } }