示例#1
0
        // receive event notifications from MusicBee
        // you need to set about.ReceiveNotificationFlags = PlayerEvents to receive all notifications, and not just the startup event
        public void ReceiveNotification(string sourceFileUrl, NotificationType type)
        {
            // perform some action depending on the notification type
            switch (type)
            {
            case NotificationType.PluginStartup:
                //Config
                string dataPath = Path.Combine(mbApiInterface.Setting_GetPersistentStoragePath(), "LocalLyricsLoaderSettings.xml");
                Configuration.LoadConfig(dataPath);

                //Local
                var mbLang = mbApiInterface.MB_GetLocalisation("Main.field.173", "Language");
                LocalizationManager.SetByMBField173(mbLang);
                break;
            }
        }