Exemple #1
0
        public void AddElement(Keys key, string Description)
        {
            Font FontKeyText         = new Font("Arial", KeySize, FontStyle.Bold);
            Font FontDescriptionText = new Font("Arial", DescriptionSize, FontStyle.Regular);

            GBuffer.DrawString("[", FontKeyText, new SolidBrush(GenericTextColor), 0, LastElementTop);
            GBuffer.DrawString(key.ToString(), FontKeyText, new SolidBrush(KeyColor), 16, LastElementTop);
            GBuffer.DrawString("]", FontKeyText, new SolidBrush(GenericTextColor), 32, LastElementTop);
            GBuffer.DrawString(Description, FontDescriptionText, new SolidBrush(GenericTextColor), 48, LastElementTop);

            LastElementTop += (KeySize + BetweenEntriesGap);
        }