示例#1
0
        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()));
        }
示例#2
0
 internal void RaiseDocumentModified(GedcomDocument document)
 {
     // Inform caller
     DocumentModified?.Invoke(document);
 }
示例#3
0
 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);
 }