aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/TriWrite.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications/TriWrite.cs')
-rw-r--r--ShiftOS.WinForms/Applications/TriWrite.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Applications/TriWrite.cs b/ShiftOS.WinForms/Applications/TriWrite.cs
index f565328..293d30c 100644
--- a/ShiftOS.WinForms/Applications/TriWrite.cs
+++ b/ShiftOS.WinForms/Applications/TriWrite.cs
@@ -12,11 +12,12 @@ using ShiftOS.Engine;
namespace ShiftOS.WinForms.Applications
{
+ [FileHandler("TriWrite Document", ".rtf", "fileicontext")]
[WinOpen("triwrite")]
[AppscapeEntry("triwrite", "TriWrite", "Part of the trilogy of office applications for enhancement of your system. TriWrite is easliy the best text editor out there for ShiftOS.", 1024, 750, "file_skimmer;textpad", "Office")]
[DefaultTitle("TriWrite")]
[Launcher("TriWrite", false, null, "Office")]
- public partial class TriWrite : UserControl, IShiftOSWindow
+ public partial class TriWrite : UserControl, IShiftOSWindow, IFileHandler
{
public TriWrite()
@@ -24,6 +25,12 @@ namespace ShiftOS.WinForms.Applications
InitializeComponent(); //From the library of babel: "FIRST COMMIT FROM A MAC WOOOO TURIANS ARE COOL"
}
+ public void OpenFile(string file)
+ {
+ AppearanceManager.SetupWindow(this);
+ LoadFile(file);
+ }
+
private void newToolStripMenuItem_Click(object sender, EventArgs e)
{
txtcontents.Text = "";