public DecodeWindow() { InitializeComponent(); dataTypeComboBox.SelectedIndex = 0; rtfColours = RtfColour.CreateColourTable(); rtfHeader = RtfColour.CreateRtfHeader(rtfColours); }
/// <summary> /// Initializes a new instance of the <see cref="HexViewer"/> class. /// </summary> public HexViewer() { InitializeComponent(); rtfColours = RtfColour.CreateColourTable(); rtfColours.Add(headerColour); rtfColours.Add(offsetColour); rtfHeader = RtfColour.CreateRtfHeader(rtfColours); if (VisualStyleRenderer.IsSupported) { renderer = new VisualStyleRenderer(VisualStyleElement.Header.Item.Normal); } dataRichTextBox.TextSize = TextRenderer.MeasureText("00", new Font("Courier New", 8.25F)); dataRichTextBox.TextLineSize = TextRenderer.MeasureText("00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00", new Font("Courier New", 8.25F)); }