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

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