aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
diff options
context:
space:
mode:
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);
+ }
}
}