diff options
| author | lempamo <[email protected]> | 2017-08-13 15:49:47 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-08-13 15:49:47 -0400 |
| commit | e858f712574f88adb93e93205d1d94dcd0f98cb6 (patch) | |
| tree | 09b1c70fe550230fa69c2ee858698a031cbf7c64 /TimeHACK.Main | |
| parent | 38da0b8cb2153f91947f21b14c64f0281fa74056 (diff) | |
| download | histacom2-e858f712574f88adb93e93205d1d94dcd0f98cb6.tar.gz histacom2-e858f712574f88adb93e93205d1d94dcd0f98cb6.tar.bz2 histacom2-e858f712574f88adb93e93205d1d94dcd0f98cb6.zip | |
fixed dialog
Diffstat (limited to 'TimeHACK.Main')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs index 9b6fd80..b38c34e 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs @@ -778,15 +778,14 @@ namespace TimeHACK.OS.Win95.Win95Apps private void mainView_AfterLabelEdit(object sender, LabelEditEventArgs e) { - string setText; - setText = e.Label; + string setText = e.Label; if (setText == "") wm.StartInfobox95("Windows Explorer", "Please enter a new directory name", InfoboxType.Info, InfoboxButtons.OK); else { - if (Directory.Exists(setText)) wm.StartInfobox95("Windows Explorer", "That directory already exists.", InfoboxType.Info, InfoboxButtons.OK); + if (Directory.Exists(setText)) wm.StartInfobox95("Error Renaming File", $"Cannot rename {new DirectoryInfo(setText).Name}: A file with the name you specified already exists. Specify a different filename.", InfoboxType.Error, InfoboxButtons.OK); else { - if (File.Exists(setText)) wm.StartInfobox95("Windows Explorer", "That file already exists.", InfoboxType.Info, InfoboxButtons.OK); + if (File.Exists(setText)) wm.StartInfobox95("Error Renaming File", $"Cannot rename {new FileInfo(setText).Name}: A file with the name you specified already exists. Specify a different filename.", InfoboxType.Error, InfoboxButtons.OK); else { if (Directory.Exists((string)mainView.FocusedItem.Tag)) @@ -796,7 +795,6 @@ namespace TimeHACK.OS.Win95.Win95Apps Directory.Move((string)mainView.FocusedItem.Tag, Path.Combine(CurrentDirectory, setText)); File.Delete(Path.Combine(CurrentDirectory, setText, "_data.info")); - SaveDirectoryInfo(CurrentDirectory, setText, false, setText, true); } else @@ -807,7 +805,6 @@ namespace TimeHACK.OS.Win95.Win95Apps File.Delete((string)mainView.FocusedItem.Tag); } } - } } RefreshAll(); |
