Ejemplo n.º 1
0
        public DecodeWindow()
        {
            InitializeComponent();

            dataTypeComboBox.SelectedIndex = 0;

            rtfColours = RtfColour.CreateColourTable();
            rtfHeader  = RtfColour.CreateRtfHeader(rtfColours);
        }
Ejemplo n.º 2
0
        /// <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));
        }