/// <summary> /// Metoda umožní uložit soubor "GraphLib\Shared\WorkSchedulerResources.cs", obsahující jména souborů načtených z Resources /// </summary> /// <param name="fileInfo"></param> /// <param name="resources"></param> private void _SaveResourceClass(System.IO.FileInfo fileInfo, IEnumerable <ResourceItem> resources) { DateTime resourceDate = fileInfo.LastWriteTime; // Datum souboru Resources string appPath = fileInfo.Directory.FullName; // Adresář, kde běží aplikace string targetPath; string content = null; string fileName = fileInfo.Name.ToLower(); switch (fileName) { case "asol.graphlib.res": targetPath = System.IO.Path.Combine(ResourceItem.UpPath(appPath, 1), "GraphLib", "Shared"); _SaveResourceClassToPath(targetPath, "WorkSchedulerResources.cs", resourceDate, resources, ref content); targetPath = System.IO.Path.Combine(ResourceItem.UpPath(appPath, 1), "App", "LCS", "Base"); _SaveResourceClassToPath(targetPath, "WorkSchedulerResources.cs", resourceDate, resources, ref content); break; case "asol.graphlib.ics": targetPath = System.IO.Path.Combine(ResourceItem.UpPath(appPath, 1), "GraphLib", "Components"); _SaveResourceClassToPath(targetPath, "IconResources.cs", resourceDate, resources, ref content); break; } }