Пример #1
0
 /// <summary>
 /// Puts the specified additional document into the closed state
 /// </summary>
 public void CloseAdditionalDocument(DocumentID documentId)
 {
     Workspace.CloseAdditionalDocument((MSDocumentID)documentId);
 }
Пример #2
0
 /// <summary>
 /// Puts the specified document into the closed state.
 /// </summary>
 public void CloseDocument(DocumentID documentId)
 {
     Workspace.CloseDocument((MSDocumentID)documentId);
 }
Пример #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);
 }
Пример #4
0
 //hmm, should this be cached?
 public CSDocument GetDocument(DocumentID did)
 {
     return(new CSDocument(Workspace.CurrentSolution.GetDocument(did)));
 }