/// <summary> /// 删除皮肤 /// </summary> /// <param name="model"></param> /// <returns></returns> public void SkinDelete(Skin model) { try { if (model.MountType == "已挂载") { SkinUnMount(model); } var path = Soft.SkinPath(model); if (Directory.Exists(path)) { Directory.Delete(path, true); } _skin.Delete(model.Id); } catch (Exception ex) { MessageBox.Show("文件或目录被占用无法删除!", "删除失败!"); Log.LogError("删除失败", ex); } }