Пример #1
0
 private void Play_StateChanged(object sender, PlayButtonEventArgs e)
 {
     if (e.State == PlayButtonEventArgs.States.Play)
     {
         Player.Play();
     }
     else
     {
         Player.Pause();
     }
 }
Пример #2
0
 protected void OnStateChange(PlayButtonEventArgs e)
 {
     StateChanged?.Invoke(this, e);
 }