private void DipMusic_ItemSelectionChanged(MusicEntity selected) { if (laudio.Playing) { laudio.Stop(); } laudio.Load(selected); laudio.Play(); if (dia == null) { dia = new Dialogue(new _3DVisualize(), "3D"); dia.Show(); } }
private void DipMusic_ItemSelectionChanged(MusicEntity selected, object tag) { if (laudio.Playing) { laudio.Stop(); } BitmapSource source; ControlPanel.AlbumProfile = (source = MediaMetaDataReader.GetPicture(selected.Path)) == null ? null : new ImageBrush(source); laudio.Load(selected); ControlPanel.StartPlaying(); laudio.Play(); //if (dia == null) //{ // dia = new Dialogue(new _3DVisualize(), "3D"); // dia.Show(); //} }
private void Next(bool proccedNext) { if (proccedNext) { Dispatcher.Invoke(() => dipMusic.SelectedIndex++); return; } if (laudio.Playing) { laudio.Stop(); } laudio.Load((MusicEntity)dipMusic.SelectedItem); laudio.Play(); if (dia == null) { dia = new Dialogue(new _3DVisualize(), "3D"); dia.Show(); } }