예제 #1
0
 /// <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);
        }
예제 #4
0
 private void DoFileOperation(string rootPathName, MaterialFileOeprationInfo fileOp, MaterialContent content)
 {
     MaterialFileOperationSettings.GetConfig().Operations.ForEach(op =>
                                                                  op.DoModifyFileOperations(rootPathName, fileOp, content));
 }
예제 #5
0
 private static void DecorateMaterials(MaterialList materials)
 {
     MaterialFileOperationSettings.GetConfig().Operations.ForEach(op => op.DecorateMaterialListAfterLoad(materials));
 }