diff options
| author | Michael <[email protected]> | 2017-07-19 13:06:39 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-07-19 13:06:39 -0400 |
| commit | 3fe1872f5f81f8203e57cbba2dca6ce833f08f22 (patch) | |
| tree | a8fecc3d7a3bf16c62a27702194ac7f2e852e3be /ShiftOS.Frontend/Apps/TextPad.cs | |
| parent | a0ee79dbcd26a8f07d493a7e993cbaf0d02e44db (diff) | |
| download | shiftos_thereturn-3fe1872f5f81f8203e57cbba2dca6ce833f08f22.tar.gz shiftos_thereturn-3fe1872f5f81f8203e57cbba2dca6ce833f08f22.tar.bz2 shiftos_thereturn-3fe1872f5f81f8203e57cbba2dca6ce833f08f22.zip | |
hmmmm whatever it kinda works
Diffstat (limited to 'ShiftOS.Frontend/Apps/TextPad.cs')
| -rw-r--r-- | ShiftOS.Frontend/Apps/TextPad.cs | 49 |
1 files changed, 49 insertions, 0 deletions
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); + } + } +} |
