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; } }
void OnNewApplicationInstanceLoaded(object sender, ApplicationInstanceEventArgs e) { if (NewApplicationInstanceLoaded != null) { NewApplicationInstanceLoaded(this, e); } }