Exemple #1
0
        void NewApplicationInstanceLoaded(object sender, ApplicationInstanceEventArgs e)
        {
            switch (e.Command)
            {
            case "playpause":
                Player.Instance.PlayPause();
                break;

            case "next":
            case "nexttrack":
                Player.Instance.NextTrack();
                break;

            case "prev":
            case "previous":
            case "prevtrack":
            case "previoustrack":
                Player.Instance.PrevTrack();
                break;

            default:
                Player.Instance.ShowPlayer();
                break;
            }
        }
Exemple #2
0
 void OnNewApplicationInstanceLoaded(object sender, ApplicationInstanceEventArgs e)
 {
     if (NewApplicationInstanceLoaded != null)
     {
         NewApplicationInstanceLoaded(this, e);
     }
 }