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/GlobalPrograms | |
| 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/GlobalPrograms')
| -rw-r--r-- | TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs b/TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs index 3c9ac2f..f9382e3 100644 --- a/TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs +++ b/TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs @@ -85,10 +85,9 @@ namespace TimeHACK.OS.Win95.Win95Apps { try { - ActivateSaveFileDialog(".txt"); + ActivateOpenFileDialog(".txt"); string selectedPath = Program.OpenFileExplorerAsDialogAndReturnGivenPath(); - MessageBox.Show(selectedPath); if (selectedPath != "") { mainText.Text = ReadTextFile(selectedPath); @@ -113,7 +112,6 @@ namespace TimeHACK.OS.Win95.Win95Apps } } - // TO LEMPAMO: THIS FUCTION IS A FUNCTION ON IT'S OWN BECUASE TWO THINGS CALL IT - OK? void SaveAs() { try @@ -125,7 +123,7 @@ namespace TimeHACK.OS.Win95.Win95Apps { SaveSystem.CreateWindowsFile(new FileInfo(selectedPath).Directory.FullName, selectedPath.Split('\\').Last(), mainText.Text, 12, mainText.Text.Length); CurrentFilePath = selectedPath; - } + } } catch { } } |
