/// <summary> /// 文件操作 /// </summary> /// <param name="dirRootName">文件保存路径的配置名称</param> /// <param name="fileOPList">文件操作集合</param> private void DoFileOperations(string rootPathName, IEnumerable <MaterialFileOeprationInfo> fileOPList) { foreach (MaterialFileOeprationInfo fileOp in fileOPList) { MaterialFileOperationSettings.GetConfig().Operations.ForEach(op => op.DoModifyFileOperations(rootPathName, fileOp, null)); } }
public static MaterialFileOperationSettings GetConfig() { MaterialFileOperationSettings settings = (MaterialFileOperationSettings)ConfigurationBroker.GetSection("materialFileOperationSettings"); if (settings == null) settings = new MaterialFileOperationSettings(); return settings; }
public static MaterialFileOperationSettings GetConfig() { MaterialFileOperationSettings settings = (MaterialFileOperationSettings)ConfigurationBroker.GetSection("materialFileOperationSettings"); if (settings == null) { settings = new MaterialFileOperationSettings(); } return(settings); }
private void DoFileOperation(string rootPathName, MaterialFileOeprationInfo fileOp, MaterialContent content) { MaterialFileOperationSettings.GetConfig().Operations.ForEach(op => op.DoModifyFileOperations(rootPathName, fileOp, content)); }
private static void DecorateMaterials(MaterialList materials) { MaterialFileOperationSettings.GetConfig().Operations.ForEach(op => op.DecorateMaterialListAfterLoad(materials)); }