private void DocumentChangeWatcher_DocumentOpened(object sender, CodeProject.DocumentChangedEventArgs e) { if (e.Document == null) { return; } this.lastDirtyStateBeforePartialCompileIndex[e.Document.DocumentReference] = new CodeProject.PartialCompileDirtyState?(); }
private void DocumentChangeWatcher_DocumentClosed(object sender, CodeProject.DocumentChangedEventArgs e) { if (e.Document == null || !this.lastDirtyStateBeforePartialCompileIndex.ContainsKey(e.Document.DocumentReference)) { return; } this.lastDirtyStateBeforePartialCompileIndex.Remove(e.Document.DocumentReference); }