Esempio n. 1
0
 private void HexViewModelPropertyChangedEventHandler(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "CurrentInfoHexViewerContent")
     {
         _hexBoxViewer.LineInfoOffset = _hvvm.ActiveStartAddress;
         if (null == _hvvm.DataProvider)
         {
             _hexBoxViewer.ByteProvider = null;
         }
         else
         {
             _hexBoxViewer.ByteProvider = new DynamicByteProvider(_hvvm.DataProvider);
         }
     }
     else if (e.PropertyName == "CurrentInfoHexViewerHighlight")
     {
         _hexBoxViewer.ClearHighlights();
         foreach (HexViewHighlight highlight in _hvvm.DataModel.InfoHexHighlights)
         {
             _hexBoxViewer.AddHighlight(highlight);
         }
     }
 }
Esempio n. 2
0
 private void clearHighlights_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     _hexBoxViewer.ClearHighlights();
 }