aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-04-29 13:23:29 +0100
committerAlex-TIMEHACK <[email protected]>2017-04-29 13:23:29 +0100
commit2c5d04a7708f5edd6d792c6938867a558cb955f8 (patch)
tree6a2861d121cf37eb208efdec0c7d26deadd02adc /TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
parentcfd245999971496cf445b35be0d83019c12a3025 (diff)
downloadhistacom2-2c5d04a7708f5edd6d792c6938867a558cb955f8.tar.gz
histacom2-2c5d04a7708f5edd6d792c6938867a558cb955f8.tar.bz2
histacom2-2c5d04a7708f5edd6d792c6938867a558cb955f8.zip
Finished wordpad!
I've finished wordpad now - hope there aren't any conflicts
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);
+ }
}
}