private void UpdateHexTextBox() { if (Data == null) { return; } HexTextBox.Text = HexUtilties.ByteArrayToString(Data, int.Parse(BytePerLineComboBox.Text)); }
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(); }