Пример #1
0
        private void RegisterTmls(DirectoryInfo tmlDir)
        {
            tmlDir.AssertExists();

            foreach (var iTml in TmlList)
            {
                this[iTml] = Clause(OpenTmlFile(tmlDir, iTml));
            }
        }
Пример #2
0
        private void RegisterIncludes(DirectoryInfo schemaDir)
        {
            schemaDir.AssertExists();

            foreach (var iInclude in IncludeList)
            {
                this[iInclude.Key]         = Clause(GetFileName(schemaDir, iInclude.Value));
                this[iInclude.Key + "Uri"] = Clause("file:///" + Uri.EscapeUriString(GetFileName(schemaDir, iInclude.Value).Replace('\\', '/')));
            }
        }
Пример #3
0
        private void RegistDirs(DirectoryInfo rootDir, Dictionary <string, string> subDirMap)
        {
            rootDir.AssertExists();

            foreach (var iOutputDir in subDirMap)
            {
                var tDirInfo = rootDir.NavigateTo(iOutputDir.Value);
                tDirInfo.SafeCreate(string.Empty);
                this[iOutputDir.Key] = Clause(tDirInfo.FullName);
            }
        }
Пример #4
0
 public static void SafeCreate(this DirectoryInfo dirInfo, string paramName)
 {
     dirInfo.AssertNotNull(paramName).Create();
     dirInfo.AssertExists();
 }