aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-04-29 13:31:09 +0100
committerGitHub <[email protected]>2017-04-29 13:31:09 +0100
commitc29b5e3db9e668c3ec4a7dcf6cb81f0641e6413d (patch)
tree5577d2d1c42d2243341034c6a1536f225fc6655b /TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
parenta6bece6c3b5b8fc3c9cd17ae2cbe135e2025ab44 (diff)
parent0fd0391263ccac953fca43d5476410f4584446eb (diff)
downloadhistacom2-c29b5e3db9e668c3ec4a7dcf6cb81f0641e6413d.tar.gz
histacom2-c29b5e3db9e668c3ec4a7dcf6cb81f0641e6413d.tar.bz2
histacom2-c29b5e3db9e668c3ec4a7dcf6cb81f0641e6413d.zip
Merge pull request #54 from Alex-TIMEHACK/master
Alex's wordpad
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs47
1 files changed, 47 insertions, 0 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
index 6542f4c..6ff7833 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
@@ -36,5 +36,52 @@ namespace TimeHACK.OS.Win95.Win95Apps
WindowManager wm = new WindowManager();
wm.startAboutBox95("Notepad", "Microsoft Notepad", Properties.Resources.WinClassicNotepad);
}
+
+ private void wordWrapToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ mainText.WordWrap = wordWrapToolStripMenuItem.Checked;
+ }
+
+ private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ mainText.SelectAll();
+ }
+
+ private void undoToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ mainText.Undo();
+ }
+
+ private void cutToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ if (mainText.SelectedText.Length >= 0)
+ {
+ mainText.Cut();
+ }
+ }
+
+ private void copyToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ if (mainText.SelectedText.Length >= 0)
+ {
+ mainText.Copy();
+ }
+ }
+
+ private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ mainText.Paste();
+ }
+
+ private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ mainText.Text.Remove(mainText.SelectionStart, mainText.SelectedText.Length);
+ }
+
+ private void timeDateToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ string DateTime = System.DateTime.Now.ToString("HH:mm tt dd/MM/yyyy");
+ mainText.AppendText(DateTime);
+ }
}
}