mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-16 01:37:55 +00:00
Fix context menus
This commit is contained in:
parent
1900ad5d73
commit
bb73c85ae0
5 changed files with 4 additions and 9 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -59,7 +59,6 @@ namespace FirstPlugin
|
|||
Text = FileName;
|
||||
CanSave = true;
|
||||
|
||||
|
||||
FileReader reader = new FileReader(new MemoryStream(data));
|
||||
|
||||
reader.ByteOrder = Syroot.BinaryData.ByteOrder.BigEndian;
|
||||
|
@ -82,10 +81,8 @@ namespace FirstPlugin
|
|||
reader.Close();
|
||||
reader.Dispose();
|
||||
|
||||
ContextMenu = new ContextMenu();
|
||||
MenuItem save = new MenuItem("Save");
|
||||
ContextMenu.MenuItems.Add(save);
|
||||
save.Click += Save;
|
||||
ContextMenuStrip = new STContextMenuStrip();
|
||||
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Save", null, Save, Keys.Control | Keys.S));
|
||||
}
|
||||
|
||||
public void Unload()
|
||||
|
|
|
@ -73,10 +73,8 @@ namespace FirstPlugin
|
|||
|
||||
ReadGx2(new FileReader(stream));
|
||||
|
||||
ContextMenu = new ContextMenu();
|
||||
MenuItem save = new MenuItem("Save");
|
||||
ContextMenu.MenuItems.Add(save);
|
||||
save.Click += Save;
|
||||
ContextMenuStrip = new STContextMenuStrip();
|
||||
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Save", null, Save, Keys.Control | Keys.S));
|
||||
}
|
||||
private void Save(object sender, EventArgs args)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue