aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-07-01 09:59:26 +0100
committerAlex-TIMEHACK <[email protected]>2017-07-01 09:59:26 +0100
commitf3bac11ff6541098e50252f55887e8d1a09c5f84 (patch)
tree0c733929be8f1cc65667a167947314ca304e15dc /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
parenta22ceeedc782d7f1624cc6f0f6ea8702bd8ce493 (diff)
downloadhistacom2-f3bac11ff6541098e50252f55887e8d1a09c5f84.tar.gz
histacom2-f3bac11ff6541098e50252f55887e8d1a09c5f84.tar.bz2
histacom2-f3bac11ff6541098e50252f55887e8d1a09c5f84.zip
Reorganised ALOT OF STUFF
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs125
1 files changed, 0 insertions, 125 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
deleted file mode 100644
index 6dd6ee8..0000000
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using TimeHACK.Engine;
-using static TimeHACK.Engine.FileDialogBoxManager;
-using System.IO;
-
-namespace TimeHACK.OS.Win95.Win95Apps
-{
- public partial class WinClassicNotepad : UserControl
- {
- public WinClassicNotepad()
- {
- InitializeComponent();
- foreach (ToolStripMenuItem item in menuStrip1.Items)
- {
- item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
- item.BackColor = Color.Silver;
- item.BackgroundImage = Properties.Resources.sliversilver;
- item.BackgroundImageLayout = ImageLayout.Center;
- item.DisplayStyle = ToolStripItemDisplayStyle.Text;
- }
- }
-
- private void exitToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.ParentForm.Close();
- }
-
- private void aboutNotepadToolStripMenuItem_Click(object sender, EventArgs e)
- {
- 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);
- }
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- try
- {
- ActivateSaveFileDialog(".txt");
- String selectedPath;
- selectedPath = Program.OpenFileExplorerAsDialogAndReturnGivenPath();
-
- MessageBox.Show(selectedPath);
- if (selectedPath != "")
- {
- mainText.Text = ReadTextFile(selectedPath);
- }
- }
- catch
- {
- }
- }
-
- private void saveToolStripMenuItem_Click(object sender, EventArgs e)
- {
- try
- {
- ActivateSaveFileDialog(".txt");
- String selectedPath;
- selectedPath = Program.OpenFileExplorerAsDialogAndReturnGivenPath();
-
- MessageBox.Show(selectedPath);
- if (selectedPath != "")
- {
- File.WriteAllText(selectedPath, mainText.Text);
- }
- } catch {
- }
- }
- }
-}