public void RefreshModifiedDocument(IDsDocument document) { var documentsHash = GetModifiedDocuments(document); decompilationCache.Clear(documentsHash); var tabs = new List <IDocumentTab>(); foreach (var tab in VisibleFirstTabs) { if (MustRefresh(tab, documentsHash)) { tabs.Add(tab); } } if (tabs.Count > 0) { Refresh(tabs); } DocumentModified?.Invoke(this, new DocumentModifiedEventArgs(documentsHash.ToArray())); }
internal void RaiseDocumentModified(GedcomDocument document) { // Inform caller DocumentModified?.Invoke(document); }
void OnTextContentsChanged(object sender, TextModificationEventArgs e) { IterateTreeOnContentChange(RootView, e); DocumentModified?.Invoke(this, e); }
private void RichTextEditor_TextChanged(object sender, Windows.UI.Xaml.RoutedEventArgs e) { DocumentModified?.Invoke(this, EventArgs.Empty); }