Пример #1
0
 /// <summary>
 /// Fired when player status has changed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void PlayerBase_PlayerStatusChanged(object sender, PlayerStatusChangedEventArgs e)
 {
     if (e.state == PlayerStates.Online)
     {
         SetupCheckForNewTitle();
     }
     else if (e.state == PlayerStates.Offline)
     {
         StopCheckForNewTrack();
     }
 }
Пример #2
0
 // onPlayerStatusChangged Event
 protected void onPlayerStatusChanged(object sender, PlayerStatusChangedEventArgs e)
 {
     if (PlayerStatusChanged != null)
         PlayerStatusChanged(sender, e);
 }