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;
|
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()
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user