1
0
mirror of synced 2024-12-01 10:37:25 +01:00

Fix context menus

This commit is contained in:
KillzXGaming 2019-05-01 21:40:48 -04:00
parent 1900ad5d73
commit bb73c85ae0
5 changed files with 4 additions and 9 deletions

Binary file not shown.

View File

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

View File

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