diff --git a/ShiftOS.WinForms/Applications/TriWrite.Designer.cs b/ShiftOS.WinForms/Applications/TriWrite.Designer.cs index 71598ef..e420fd5 100644 --- a/ShiftOS.WinForms/Applications/TriWrite.Designer.cs +++ b/ShiftOS.WinForms/Applications/TriWrite.Designer.cs @@ -157,8 +157,8 @@ // // TriWrite // - this.Controls.Add(this.menuStrip3); this.Controls.Add(this.txtcontents); + this.Controls.Add(this.menuStrip3); this.Controls.Add(this.menuStrip2); this.Name = "TriWrite"; this.Size = new System.Drawing.Size(527, 513); 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()