Пример #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
        private void applyButton_Click(object sender, EventArgs e)
        {
            marker.Note = noteTextBox.Text;
            marker.Type = DataType.FromString(dataTypeComboBox.Text);
            sizeNumericUpDown.Enabled = marker.Type.VariableNumBytes;
            marker.NumBytes           = (int)sizeNumericUpDown.Value;

            hexview.ApplyEdit(marker.Type.EncodeString(marker.Address, valueTextBox.Text));
        }