public void PlayMusic(Music music) { InPlaying = music; UIPlayingMusic.Text = InPlaying.Title; UIArtist.Text = InPlaying.Author.Name; UIFormat.Text = InPlaying.Format; UIForward.Enabled = true; UIBackward.Enabled = true; player.PlayMusic(InPlaying); try { UIMusicImage.BackgroundImage = Tags.GetMetaImage(player.player.URL); } catch { UIMusicImage.BackgroundImage = Properties.Resources.No_Cover_Image; } PopupNotifier notifier = new PopupNotifier() { TitleText = "Playing", ContentText = music.Name, Size = new System.Drawing.Size(200, 40), HeaderHeight = 5, }; notifier.Popup(); TimerMusic.Start(); }
private void UIMusicTrackBar_MouseUp(object sender, MouseEventArgs e) { player.player.controls.currentPosition = (int)UIMusicTrackBar.Value; TimerMusic.Start(); }
private void UIMusicTrackBar_MouseDown(object sender, MouseEventArgs e) => TimerMusic.Stop();