예제 #1
0
        private void UpdateHexTextBox()
        {
            if (Data == null)
            {
                return;
            }

            HexTextBox.Text = HexUtilties.ByteArrayToString(Data, int.Parse(BytePerLineComboBox.Text));
        }
예제 #2
0
        private void UpdatePropertyGrid()
        {
            var selectedText = HexTextBox.SelectedText;

            var selectedBytes = HexUtilties.ConvertHexStringToByteArray(selectedText);

            if (selectedBytes == null)
            {
                selectedBytes = new byte[0];
            }

            var hb = new HexUtilties.ByteObject(selectedBytes);

            SelectionPropertyGrid.SelectedObject       = hb;
            AmountOfBytesSelectedStatusStripLabel.Text = "Length: " + hb.Bytes.Length.ToString();
        }