diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-05-31 09:23:32 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-05-31 09:23:32 +0100 |
| commit | 21320c8f96c2833860203a9df50e5f6afd7305b9 (patch) | |
| tree | 6aabc8565e1b7ad5bc0950160885f951db8d0cea /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs | |
| parent | 976099d38c2a048dbafca7f96de5e12ea348096c (diff) | |
| download | histacom2-21320c8f96c2833860203a9df50e5f6afd7305b9.tar.gz histacom2-21320c8f96c2833860203a9df50e5f6afd7305b9.tar.bz2 histacom2-21320c8f96c2833860203a9df50e5f6afd7305b9.zip | |
Fixed taskbar bug.............. again.........
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; } |
