aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-02 16:55:35 -0400
committerlempamo <[email protected]>2017-07-02 16:55:35 -0400
commit776adbafcbcccb4661589794a73933d518bbf4be (patch)
tree855e94fb60bbdaf1fbd3427ef8f46193fd22a4d7 /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicNotepad.cs
parent66eec928d5867d00e57ceed0b211e8c8681b5430 (diff)
parentddbca5032ce763c43894088a5b5c0fba8f035daa (diff)
downloadhistacom2-776adbafcbcccb4661589794a73933d518bbf4be.tar.gz
histacom2-776adbafcbcccb4661589794a73933d518bbf4be.tar.bz2
histacom2-776adbafcbcccb4661589794a73933d518bbf4be.zip
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
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 {
- }
- }
- }
-}