aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/Apps/TextPad.cs
blob: 84eb9ef2bdceaa4f97fb7144f48fd6292ab85cca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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);
        }
    }
}