aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-06-02 15:06:52 +0100
committerAlex-TIMEHACK <[email protected]>2017-06-02 15:06:52 +0100
commitcf7392f930598bbbdf50cbb3a4f2bf91a2b44022 (patch)
treee9fc63af4b098b2a58c92235d2ab20228687d9ef /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
parenta1b2e2b65db0c6db12c49f7a5fa1c136467234c9 (diff)
downloadhistacom2-cf7392f930598bbbdf50cbb3a4f2bf91a2b44022.tar.gz
histacom2-cf7392f930598bbbdf50cbb3a4f2bf91a2b44022.tar.bz2
histacom2-cf7392f930598bbbdf50cbb3a4f2bf91a2b44022.zip
Added my File Explorer
It also has a File Open and File Save thing configured for the Notepad
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
index a5472a3..e08e6ec 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using TimeHACK.Engine;
using static TimeHACK.Engine.FileDialogBoxManager;
+using System.IO;
namespace TimeHACK.OS.Win95.Win95Apps
{
@@ -93,7 +94,8 @@ namespace TimeHACK.OS.Win95.Win95Apps
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
-
+ ActivateSaveFileDialog(".txt");
+ File.WriteAllText(Program.OpenFileExplorerAsDialogAndReturnGivenPath(), mainText.Text);
}
}
}