Exemple #1
0
        public MarkerEditor(DataMarker marker, HexView hexview)
        {
            InitializeComponent();
            this.marker = marker;
            this.hexview = hexview;

            markerAtTextBox.Text = DataType.AddressToString(marker.Address);
            noteTextBox.Text = marker.Note;
            dataTypeComboBox.Items.AddRange(DataType.GetKnownDataTypes().ToArray());
            dataTypeComboBox.SelectedIndex = dataTypeComboBox.FindString(marker.Type.Name);
            sizeNumericUpDown.Value = marker.NumBytes;
            sizeNumericUpDown.Enabled = marker.Type.VariableNumBytes;
            valueTextBox.Text = marker.Type.DecodeToString(hexview.GetDataAt(marker.Address));
        }
Exemple #2
0
        public MarkerEditor(DataMarker marker, HexView hexview)
        {
            InitializeComponent();
            this.marker  = marker;
            this.hexview = hexview;

            markerAtTextBox.Text = DataType.AddressToString(marker.Address);
            noteTextBox.Text     = marker.Note;
            dataTypeComboBox.Items.AddRange(DataType.GetKnownDataTypes().ToArray());
            dataTypeComboBox.SelectedIndex = dataTypeComboBox.FindString(marker.Type.Name);
            sizeNumericUpDown.Value        = marker.NumBytes;
            sizeNumericUpDown.Enabled      = marker.Type.VariableNumBytes;
            valueTextBox.Text = marker.Type.DecodeToString(hexview.GetDataAt(marker.Address));
        }
Exemple #3
0
 public void EditMarker(int selectedAddress, HexView hexview)
 {
     new MarkerEditor(GetMarker(selectedAddress), hexview).Show();
 }