Exemplo n.º 1
0
		void HexDocument_OnDocumentModified(object sender, HexDocumentModifiedEventArgs e) {
			// Descendants() shouldn't be used since some of the nodes could have thousands of
			// children and it's better if the parent can quickly check whether any of its children
			// need to get notified.
			foreach (HexTreeNode node in Children)
				node.OnDocumentModified(e.StartOffset, e.EndOffset);
		}
Exemplo n.º 2
0
		void OnDocumentModified(object sender, HexDocumentModifiedEventArgs e) {
			if (InvalidateLines(e.StartOffset, e.EndOffset))
				InvalidateMeasure();
		}
Exemplo n.º 3
0
			void HexDocument_OnDocumentModified(object sender, HexDocumentModifiedEventArgs e) {
				var node = (PETreeNode)nodeWeakRef.Target;
				if (node != null)
					node.HexDocument_OnDocumentModified(sender, e);
				else {
					var doc = (HexDocument)sender;
					doc.OnDocumentModified -= HexDocument_OnDocumentModified;
				}
			}