diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-08-18 16:03:13 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-08-18 16:03:13 +0100 |
| commit | bd3612eadf3181856d5033d3e47b97357d88c345 (patch) | |
| tree | b137f4b624135588af1a55b6ff1d3e490e56ca39 /TimeHACK.Engine/FileDialogBoxManager.cs | |
| parent | f56e9b6232f34dec7693a1cf8968e50136a096ff (diff) | |
| download | histacom2-bd3612eadf3181856d5033d3e47b97357d88c345.tar.gz histacom2-bd3612eadf3181856d5033d3e47b97357d88c345.tar.bz2 histacom2-bd3612eadf3181856d5033d3e47b97357d88c345.zip | |
Quite Big revamp on Explorer part 2
Diffstat (limited to 'TimeHACK.Engine/FileDialogBoxManager.cs')
| -rw-r--r-- | TimeHACK.Engine/FileDialogBoxManager.cs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/TimeHACK.Engine/FileDialogBoxManager.cs b/TimeHACK.Engine/FileDialogBoxManager.cs index 3bffe30..7ed4725 100644 --- a/TimeHACK.Engine/FileDialogBoxManager.cs +++ b/TimeHACK.Engine/FileDialogBoxManager.cs @@ -38,27 +38,27 @@ namespace TimeHACK.Engine } } - public static void SaveTextFile(string path, string contents, int fileIcon) - { - try - { - File.WriteAllText(path, contents); - FileSystemFolderInfo theDir = Newtonsoft.Json.JsonConvert.DeserializeObject<FileSystemFolderInfo>(File.ReadAllText(Path.Combine(Path.GetPathRoot(path), "_data.info"))); + //public static void SaveTextFile(string path, string contents, int fileIcon) + //{ + // try + // { + // File.WriteAllText(path, contents); + // FileSystemFolderInfo theDir = Newtonsoft.Json.JsonConvert.DeserializeObject<FileSystemFolderInfo>(File.ReadAllText(Path.Combine(Path.GetPathRoot(path), "_data.info"))); - using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read)) - { - theDir.Files.Add(new THFileInfo() - { - Name = Path.GetFileName(path), - ByteSize = (int)fs.Length, - FileIcon = fileIcon - }); - } + // using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read)) + // { + // theDir.Files.Add(new THFileInfo() + // { + // Name = Path.GetFileName(path), + // ByteSize = (int)fs.Length, + // FileIcon = fileIcon + // }); + // } - } catch { } - } + // } catch { } + //} } } |
