From 3fe1872f5f81f8203e57cbba2dca6ce833f08f22 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 19 Jul 2017 13:06:39 -0400 Subject: hmmmm whatever it kinda works --- ShiftOS.Frontend/Apps/TextPad.cs | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ShiftOS.Frontend/Apps/TextPad.cs (limited to 'ShiftOS.Frontend/Apps/TextPad.cs') diff --git a/ShiftOS.Frontend/Apps/TextPad.cs b/ShiftOS.Frontend/Apps/TextPad.cs new file mode 100644 index 0000000..84eb9ef --- /dev/null +++ b/ShiftOS.Frontend/Apps/TextPad.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ShiftOS.Engine; + +namespace ShiftOS.Frontend.Apps +{ + [FileHandler("TextPad", ".txt", "")] + [DefaultTitle("TextPad")] + [WinOpen("textpad")] + [Launcher("TextPad", false, null, "Accessories")] + public class TextPad : GUI.Control, IShiftOSWindow, IFileHandler + { + private TerminalControl contentsLabel = null; + + public TextPad() + { + contentsLabel = new TerminalControl(); + contentsLabel.Dock = GUI.DockStyle.Fill; + AddControl(contentsLabel); + } + + public void OnLoad() + { + + } + + public void OnSkinLoad() + { + } + + public bool OnUnload() + { + return true; + } + + public void OnUpgrade() + { + } + + public void OpenFile(string file) + { + //contentsLabel.Text = Objects.ShiftFS.Utils.ReadAllText(file); + AppearanceManager.SetupWindow(this); + } + } +} -- cgit v1.2.3