Ejemplo n.º 1
0
        /// <summary>
        /// Retrieve an existing theme entry by its Uri source.
        /// Returns null if theme is not present.
        /// </summary>
        /// <param name="source"></param>
        /// <returns></returns>
        public IThemeInfo GetThemeInfo(Uri source)
        {
            ThemeInfo ret = null;

            mDic.TryGetValue(source, out ret);

            return(ret);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Retrieve an existing theme entry by its Uri source.
        /// Returns null if theme is not present.
        /// </summary>
        /// <param name="source"></param>
        /// <returns></returns>
        public IThemeInfo GetThemeInfo(string name)
        {
            ThemeInfo ret = null;

            mDic.TryGetValue(name, out ret);

            return(ret);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Remove an existing theme entry by its Uri source.
        /// </summary>
        /// <param name="source"></param>
        /// <returns></returns>
        public IThemeInfo RemoveThemeInfo(Uri source)
        {
            ThemeInfo ret = null;

            if (mDic.TryGetValue(source, out ret) == true)
            {
                mDic.Remove(source);
                return(ret);
            }

            return(ret);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Remove an existing theme entry by its Uri source.
        /// </summary>
        /// <param name="source"></param>
        /// <returns></returns>
        public IThemeInfo RemoveThemeInfo(string name)
        {
            ThemeInfo ret = null;

            if (mDic.TryGetValue(name, out ret) == true)
            {
                mDic.Remove(name);
                return(ret);
            }

            return(ret);
        }