/// <summary> /// 皮肤载入图 /// </summary> /// <param name="skin"></param> /// <returns></returns> public static string SkinLoadPath(Skin skin) { var path = Soft.SkinLoadPath(skin); if (string.IsNullOrWhiteSpace(path) || !File.Exists(path)) { path = HeroLoadPath(skin.Hero); } if (string.IsNullOrWhiteSpace(path) || !File.Exists(path)) { path = HeroLoadPath(skin.Hero); } return(path); }
/// <summary> /// 皮肤载入图 /// </summary> /// <param name="skin"></param> /// <returns></returns> public static BitmapImage SkinLoad(Skin skin) { BitmapImage image; var path = Soft.SkinLoadPath(skin); if (File.Exists(path)) { image = BitmapLoad(path); } else { image = HeroLoad(skin.Hero); } return(image); }