Esempio n. 1
0
 private void RefreshContextMenu()
 {
     _pluginSubMenu           = new DeskBandMenu("Audio Source", _audioSourceContextMenuItems);
     Options.ContextMenuItems = new List <DeskBandMenuItem> {
         _settingsMenuItem, _pluginSubMenu
     };
 }
Esempio n. 2
0
        private List <DeskBandMenuItem> BuildContextMenu()
        {
            var pluginList = _audioSourceLoader.AudioSources.Select(audioSource =>
            {
                var item      = new DeskBandMenuAction(audioSource.Name);
                item.Clicked += AudioSourceMenuItemOnClicked;
                return(item);
            });

            _pluginSubMenu = new DeskBandMenu("Audio Source", pluginList);
            var settingsMenuItem = new DeskBandMenuAction("Audio Band Settings");

            settingsMenuItem.Clicked += SettingsMenuItemOnClicked;

            return(new List <DeskBandMenuItem> {
                settingsMenuItem, _pluginSubMenu
            });
        }