示例#1
0
文件: Sparkline.cs 项目: Daoting/dt
        /// <summary>
        /// Sets the theme context.
        /// </summary>
        /// <param name="context">The theme context object.</param>
        void IThemeContextSupport.SetContext(IThemeSupport context)
        {
            IThemeContextSupport setting = this.Setting;

            if ((setting != null) && (setting.GetContext() != context))
            {
                setting.SetContext(context);
            }
        }
示例#2
0
文件: Sparkline.cs 项目: Daoting/dt
        /// <summary>
        /// Gets the theme context.
        /// </summary>
        /// <returns>Returns the theme context.</returns>
        IThemeSupport IThemeContextSupport.GetContext()
        {
            IThemeContextSupport setting = this.Setting;

            if (setting != null)
            {
                return(setting.GetContext());
            }
            return(null);
        }