private void RegisterCommands() { //create commands OpenNowPlaying = new Command((parameter) => { //display the Now Playing component Component = new NowPlayingUserControl(); }); //open collection view OpenCollection = new Command((parameter) => { //display the collection component Component = new CollectionUserControl(); }); //create commands OpenEqualizer = new Command((parameter) => { //display the equalizer component Component = new EqualizerUserControl(); }); //open visualizer OpenVisualizer = new Command((parameter) => { //display the visualizer component Component = new VisualizerUserControl(this); }); //play or pause Play = new Command((parameter) => { //play or pause the song App.SoundEngine.PlayOrPause(null); }); //stop Stop = new Command((parameter) => { //cancel visualization task _visTimer.Stop(); App.SoundEngine.Stop(); }); //prev Prev = new Command((parameter) => { App.SoundEngine.PlayPrev(); }); //next Next = new Command((parameter) => { App.SoundEngine.PlayNext(); }); }
public override void AddToTab(TabPage o) { _inspector = new VisualizerUserControl { Dock = DockStyle.Fill }; o.Text = "Xml Visualizer v2"; o.Controls.Add(_inspector); }
public override void AddToTab(TabPage o) { _inspector = new VisualizerUserControl { Dock = DockStyle.Fill }; o.Text = "Xml Visualizer v2"; o.Controls.Add(_inspector); }