aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/TriWrite.cs
diff options
context:
space:
mode:
authorRylan/wowmom98 <[email protected]>2017-05-02 21:06:52 -0400
committerRylan/wowmom98 <[email protected]>2017-05-02 21:07:07 -0400
commitc59dcc824dc3a7d2ad32b76e62db804a81df71a0 (patch)
treea5baf8ca99cd32aaf62bec653ad57d3af0649f28 /ShiftOS.WinForms/Applications/TriWrite.cs
parent14c5ba260fad4a9751630c5f5fc322bf7963602b (diff)
downloadshiftos_thereturn-c59dcc824dc3a7d2ad32b76e62db804a81df71a0.tar.gz
shiftos_thereturn-c59dcc824dc3a7d2ad32b76e62db804a81df71a0.tar.bz2
shiftos_thereturn-c59dcc824dc3a7d2ad32b76e62db804a81df71a0.zip
WHY THE FUCK ISNT OPEN SAVE AND NEW WORKING
Diffstat (limited to 'ShiftOS.WinForms/Applications/TriWrite.cs')
-rw-r--r--ShiftOS.WinForms/Applications/TriWrite.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/TriWrite.cs b/ShiftOS.WinForms/Applications/TriWrite.cs
index 71c3fb1..6fb814f 100644
--- a/ShiftOS.WinForms/Applications/TriWrite.cs
+++ b/ShiftOS.WinForms/Applications/TriWrite.cs
@@ -31,7 +31,10 @@ namespace ShiftOS.WinForms.Applications
private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
+ var txt = new List<string>();
+ txt.Add(".txt");
+ AppearanceManager.SetupDialog(new FileDialog(txt.ToArray(), FileOpenerStyle.Open, new Action<string>((file) => this.LoadFile(file))));
}
public void LoadFile(string file)
@@ -46,7 +49,10 @@ namespace ShiftOS.WinForms.Applications
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
+ var txt = new List<string>();
+ txt.Add(".txt");
+ AppearanceManager.SetupDialog(new FileDialog(txt.ToArray(), FileOpenerStyle.Save, new Action<string>((file) => this.SaveFile(file))));
}
public void OnLoad()