diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-08-18 20:41:45 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-08-18 20:41:45 +0100 |
| commit | 943b4dcb5fa597264f13f2d0cfa305f4dd542dbe (patch) | |
| tree | 3da3edb5249c5e338724859740838a7b4de7c652 /TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs | |
| parent | bd3612eadf3181856d5033d3e47b97357d88c345 (diff) | |
| download | histacom2-943b4dcb5fa597264f13f2d0cfa305f4dd542dbe.tar.gz histacom2-943b4dcb5fa597264f13f2d0cfa305f4dd542dbe.tar.bz2 histacom2-943b4dcb5fa597264f13f2d0cfa305f4dd542dbe.zip | |
Wordpad Save, Open and Save As
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs index acb491f..151dfd5 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs @@ -138,18 +138,18 @@ namespace TimeHACK.OS.Win95.Win95Apps { ListViewItem itm; - if (IsFileOpenDialog == true || IsFileSaveDialog == true) + if (IsFileOpenDialog || IsFileSaveDialog) { if (!(Path.GetFileName(str) == "_data.info")) - { + { if (new FileInfo(str).Extension == onlyViewExtension) { itm = this.mainView.Items.Add(Path.GetFileName(str)); itm.Tag = str; } - else break; + else continue; } - else break; + else continue; } else { if (!(Path.GetFileName(str) == "_data.info")) @@ -157,7 +157,7 @@ namespace TimeHACK.OS.Win95.Win95Apps itm = this.mainView.Items.Add(Path.GetFileName(str)); itm.Tag = str; } - else break; + else continue; } FileSystemFolderInfo fsfi = JsonConvert.DeserializeObject<FileSystemFolderInfo>(File.ReadAllText(Path.Combine(CurrentDirectory, "_data.info"))); foreach (var item in fsfi.Files) @@ -604,7 +604,7 @@ namespace TimeHACK.OS.Win95.Win95Apps { try { - if (new DirectoryInfo((string)mainView.FocusedItem.Tag).Extension == null || new DirectoryInfo((string)mainView.FocusedItem.Tag).Extension == "") + if (Directory.Exists(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text))) { // If it isn't a file if (mainView.FocusedItem.Text == "C:") GoToDir(Path.Combine(CurrentDirectory, "CDrive")); @@ -613,7 +613,7 @@ namespace TimeHACK.OS.Win95.Win95Apps } else { // If it is a file - if (IsFileOpenDialog == true || IsFileSaveDialog == true) + if (IsFileOpenDialog || IsFileSaveDialog) { if (new FileInfo(Path.Combine(CurrentDirectory, txtSave.Text)).Extension == onlyViewExtension) { |
