Esempio n. 1
0
 protected virtual void AttachDocument(WorkspaceDocument <TKey> document)
 {
     // TODO: unsubscribe?
     this.WorkspaceFileUpdated += (sender, e) =>
     {
         // Update features tracking particular files.
         if (e.FilePath == this.KeyToString(document.Key))
         {
             document.RaiseDocumentUpdated(e.Snapshot);
         }
     };
 }
Esempio n. 2
0
 public abstract SnapshotBase GetCurrentSnapshot(WorkspaceDocument <TKey> workspaceDocumentBase);