Exemplo n.º 1
0
        /// <summary>
        /// 皮肤预览图地址
        /// </summary>
        /// <param name="skin"></param>
        /// <returns></returns>
        private static string SkinBackImagePath(Skin skin)
        {
            var path = Soft.SkinBackImagePath(skin);

            if (string.IsNullOrWhiteSpace(path) || !File.Exists(path))
            {
                path = HeroOriginalPath(skin.Hero);
            }
            if (string.IsNullOrWhiteSpace(path) || !File.Exists(path))
            {
                path = Soft.LogoIcoPath;
            }
            if (path == null)
            {
                CopyFile();
            }
            return(path);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 皮肤预览图地址
        /// </summary>
        /// <param name="skin"></param>
        /// <returns></returns>
        private static BitmapImage SkinBackImage(Skin skin)
        {
            var path = Soft.SkinBackImagePath(skin);

            return(File.Exists(path) ? BitmapLoad(path) : HeroOriginal(skin.Hero));
        }