aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-05-31 09:24:56 +0100
committerGitHub <[email protected]>2017-05-31 09:24:56 +0100
commit33f4099d3ab54dfc6eab30e1f99fcd12a22d91b8 (patch)
tree6aabc8565e1b7ad5bc0950160885f951db8d0cea /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs
parent9ee1762d7261de1e7c98862fc91abd52deb6f8b9 (diff)
parent21320c8f96c2833860203a9df50e5f6afd7305b9 (diff)
downloadhistacom2-33f4099d3ab54dfc6eab30e1f99fcd12a22d91b8.tar.gz
histacom2-33f4099d3ab54dfc6eab30e1f99fcd12a22d91b8.tar.bz2
histacom2-33f4099d3ab54dfc6eab30e1f99fcd12a22d91b8.zip
Merge pull request #78 from Alex-TIMEHACK/master
Fixed taskbar bug
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs28
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;
}