コード例 #1
0
 private void dataTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     marker.Type               = DataType.FromString(dataTypeComboBox.Text);
     sizeNumericUpDown.Value   = marker.Type.NumBytes;
     sizeNumericUpDown.Enabled = marker.Type.VariableNumBytes;
     valueTextBox.Text         = marker.Type.DecodeToString(hexview.GetDataAt(marker.Address));
 }
コード例 #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));
        }
コード例 #3
0
ファイル: MarkerEditor.cs プロジェクト: modulexcite/hexer
        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));
        }