diff options
| author | lempamo <[email protected]> | 2017-05-31 16:50:55 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-05-31 16:50:55 -0400 |
| commit | d400883500010a3bef7aa5bab8b46ffe036e75b5 (patch) | |
| tree | 6aabc8565e1b7ad5bc0950160885f951db8d0cea /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs | |
| parent | 13cd6b245ca3104589333295ebc22bf9a659562d (diff) | |
| parent | 33f4099d3ab54dfc6eab30e1f99fcd12a22d91b8 (diff) | |
| download | histacom2-d400883500010a3bef7aa5bab8b46ffe036e75b5.tar.gz histacom2-d400883500010a3bef7aa5bab8b46ffe036e75b5.tar.bz2 histacom2-d400883500010a3bef7aa5bab8b46ffe036e75b5.zip | |
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs index 0cd2510..6ad1bb1 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs @@ -63,24 +63,22 @@ namespace TimeHACK.OS.Win95.Win95Apps String ReadDataFile(String reqDirectory, Boolean returnYesIfProtected = false) { String Val = ""; - try - { - String directoryFileInfo; - directoryFileInfo = File.ReadAllText(reqDirectory); - FileSystemFolderInfo toRead = new FileSystemFolderInfo(); - toRead = JsonConvert.DeserializeObject<FileSystemFolderInfo>(directoryFileInfo); + String directoryFileInfo; + directoryFileInfo = File.ReadAllText(reqDirectory); + FileSystemFolderInfo toRead = new FileSystemFolderInfo(); + toRead = JsonConvert.DeserializeObject<FileSystemFolderInfo>(directoryFileInfo); - if (returnYesIfProtected == true) + MessageBox.Show(toRead.label); + if (returnYesIfProtected == true) + { + if (toRead.Isprotected == true) { - if (toRead.Isprotected == true) - { - return "yes"; - } - } else { - return toRead.label; + return "yes"; } - } catch (Exception ex) { - + } + else + { + return toRead.label; } return Val; } |
