Fix context menus
This commit is contained in:
parent
1900ad5d73
commit
bb73c85ae0
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 New Issue
Block a user