Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Tooltip"/> class.
        /// </summary>
        /// <param name="guiManager">The <see cref="IGUIManager"/> to attach the <see cref="Tooltip"/> to.</param>
        /// <exception cref="ArgumentNullException"><paramref name="guiManager" /> is <c>null</c>.</exception>
        public Tooltip(IGUIManager guiManager)
        {
            if (guiManager == null)
                throw new ArgumentNullException("guiManager");

            _guiManager = guiManager;
            _font = guiManager.Font;
            _drawer = new StyledTextsDrawer(Font);

            Debug.Assert(Font != null);
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Tooltip"/> class.
        /// </summary>
        /// <param name="guiManager">The <see cref="IGUIManager"/> to attach the <see cref="Tooltip"/> to.</param>
        /// <exception cref="ArgumentNullException"><paramref name="guiManager" /> is <c>null</c>.</exception>
        public Tooltip(IGUIManager guiManager)
        {
            if (guiManager == null)
            {
                throw new ArgumentNullException("guiManager");
            }

            _guiManager = guiManager;
            _font       = guiManager.Font;
            _drawer     = new StyledTextsDrawer(Font);

            Debug.Assert(Font != null);
        }