Ejemplo n.º 1
0
 /// <summary>
 /// Puts the specified additional document into the closed state
 /// </summary>
 public void CloseAdditionalDocument(DocumentID documentId)
 {
     Workspace.CloseAdditionalDocument((MSDocumentID)documentId);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Puts the specified document into the closed state.
 /// </summary>
 public void CloseDocument(DocumentID documentId)
 {
     Workspace.CloseDocument((MSDocumentID)documentId);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Puts the specified additional document into the open state.
 /// </summary>
 public void OpenAdditionalDocument(DocumentID documentId, bool activate = true)
 {
     Workspace.OpenAdditionalDocument((MSDocumentID)documentId, activate);
 }
Ejemplo n.º 4
0
 //hmm, should this be cached?
 public CSDocument GetDocument(DocumentID did)
 {
     return(new CSDocument(Workspace.CurrentSolution.GetDocument(did)));
 }