From 943b4dcb5fa597264f13f2d0cfa305f4dd542dbe Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Fri, 18 Aug 2017 20:41:45 +0100 Subject: Wordpad Save, Open and Save As --- TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'TimeHACK.Main/GlobalPrograms') 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 { } } -- cgit v1.2.3