mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-04-20 10:40:23 +00:00
WHY THE FUCK ISNT OPEN SAVE AND NEW WORKING
This commit is contained in:
parent
14c5ba260f
commit
c59dcc824d
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue