1
0
mirror of synced 2024-12-11 07:16:05 +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; Text = FileName;
CanSave = true; CanSave = true;
FileReader reader = new FileReader(new MemoryStream(data)); FileReader reader = new FileReader(new MemoryStream(data));
reader.ByteOrder = Syroot.BinaryData.ByteOrder.BigEndian; reader.ByteOrder = Syroot.BinaryData.ByteOrder.BigEndian;
@ -82,10 +81,8 @@ namespace FirstPlugin
reader.Close(); reader.Close();
reader.Dispose(); reader.Dispose();
ContextMenu = new ContextMenu(); ContextMenuStrip = new STContextMenuStrip();
MenuItem save = new MenuItem("Save"); ContextMenuStrip.Items.Add(new ToolStripMenuItem("Save", null, Save, Keys.Control | Keys.S));
ContextMenu.MenuItems.Add(save);
save.Click += Save;
} }
public void Unload() public void Unload()

View File

@ -73,10 +73,8 @@ namespace FirstPlugin
ReadGx2(new FileReader(stream)); ReadGx2(new FileReader(stream));
ContextMenu = new ContextMenu(); ContextMenuStrip = new STContextMenuStrip();
MenuItem save = new MenuItem("Save"); ContextMenuStrip.Items.Add(new ToolStripMenuItem("Save", null, Save, Keys.Control | Keys.S));
ContextMenu.MenuItems.Add(save);
save.Click += Save;
} }
private void Save(object sender, EventArgs args) private void Save(object sender, EventArgs args)
{ {