Implement storage for palette content text details.
Inheritance: ComponentFactory.Krypton.Toolkit.PaletteContentText
コード例 #1
0
        /// <summary>
        /// Initialize a new instance of the PaletteNavContent class.
        /// </summary>
        /// <param name="inherit">Source for inheriting defaulted values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteNavContent(IPaletteContent inherit,
                                 NeedPaintHandler needPaint)
        {
            Debug.Assert(inherit != null);

            // Remember inheritance
            _inherit = inherit;

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create the content storage for sub objects
            Image     = new PaletteContentImage(needPaint);
            ShortText = new PaletteNavContentText(needPaint);
            LongText  = new PaletteNavContentText(needPaint);
        }
コード例 #2
0
        /// <summary>
        /// Initialize a new instance of the PaletteNavContent class.
        /// </summary>
        /// <param name="inherit">Source for inheriting defaulted values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteNavContent(IPaletteContent inherit,
                                 NeedPaintHandler needPaint)
        {
            Debug.Assert(inherit != null);

            // Remember inheritance
            _inherit = inherit;

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create the content storage for sub objects
            _image = new PaletteContentImage(needPaint);
            _shortText = new PaletteNavContentText(needPaint);
            _longText = new PaletteNavContentText(needPaint);
        }