From 2c5d04a7708f5edd6d792c6938867a558cb955f8 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sat, 29 Apr 2017 13:23:29 +0100 Subject: Finished wordpad! I've finished wordpad now - hope there aren't any conflicts --- TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs | 47 ++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs') 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); + } } } -- cgit v1.2.3