WHY THE FUCK ISNT OPEN SAVE AND NEW WORKING

This commit is contained in:
Rylan/wowmom98 2017-05-02 21:06:52 -04:00
parent 14c5ba260f
commit c59dcc824d
2 changed files with 7 additions and 1 deletions

View file

@ -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);

View file

@ -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()