1
MusicBee API / How to add an Context Menu?
« on: June 29, 2017, 11:33:31 AM »
I am wirting a Plugin for musicgraph.
With this c# code i got a menu Item, but i want a contect Menu Item?
private void createMenuItem()
{
// TATOOSH
mbApiInterface.MB_AddMenuItem("mnuTools/Genre Web", "Genre Web Import", Genre);
}
Next question:
I got only a reference to the current playing file.
How to get the reference from the selected library?
public void Genre(object sender, EventArgs e)
{
// read Genre current playing
String genre = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Genre);
.....
Thanks a lot
With this c# code i got a menu Item, but i want a contect Menu Item?
private void createMenuItem()
{
// TATOOSH
mbApiInterface.MB_AddMenuItem("mnuTools/Genre Web", "Genre Web Import", Genre);
}
Next question:
I got only a reference to the current playing file.
How to get the reference from the selected library?
public void Genre(object sender, EventArgs e)
{
// read Genre current playing
String genre = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Genre);
.....
Thanks a lot