Beispiel #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 (HexNode node in TreeNode.DataChildren)
				node.OnDocumentModified(e.StartOffset, e.EndOffset);
		}
Beispiel #2
0
 void OnDocumentModified(object sender, HexDocumentModifiedEventArgs e)
 {
     if (InvalidateLines(e.StartOffset, e.EndOffset))
         InvalidateMeasure();
 }
Beispiel #3
0
			void HexDocument_OnDocumentModified(object sender, HexDocumentModifiedEventArgs e) {
				var node = (PENode)nodeWeakRef.Target;
				if (node != null)
					node.HexDocument_OnDocumentModified(sender, e);
				else {
					var doc = (HexDocument)sender;
					doc.OnDocumentModified -= HexDocument_OnDocumentModified;
				}
			}