Esempio n. 1
0
 public MainPage()
 {
     this.InitializeComponent();
     MusicHelper.InitializeMusicPlay();
     music.Visibility          = Visibility.Collapsed;
     MusicHelper.MediaChanged += MusicHelper_MediaChanged;
     MusicHelper.DisplayEvent += MusicHelper_DisplayEvent;
     MusicHelper.UpdateList   += MusicHelper_UpdateList1;
     musicplayer.SetMediaPlayer(MusicHelper._mediaPlayer);
     MessageCenter.NetworkError            += MessageCenter_NetworkError;
     MessageCenter.ShowError               += MessageCenter_ShowError;
     Window.Current.Content.PointerPressed += MainPage_PointerEntered;
 }
 public MainPage()
 {
     this.InitializeComponent();
     MusicHelper.InitializeMusicPlay();
     music.Visibility          = Visibility.Collapsed;
     MusicHelper.MediaChanged += MusicHelper_MediaChanged;
     MusicHelper.DisplayEvent += MusicHelper_DisplayEvent;
     MusicHelper.UpdateList   += MusicHelper_UpdateList1;
     //ls_music.ItemsSource = MusicHelper.playList;
     musicplayer.SetMediaPlayer(MusicHelper._mediaPlayer);
     MessageCenter.NetworkError += MessageCenter_NetworkError;
     MessageCenter.ShowError    += MessageCenter_ShowError;
     SystemNavigationManager.GetForCurrentView().BackRequested += MainPage_BackRequested;
     DisplayInformation.GetForCurrentView().OrientationChanged += MainPage_OrientationChanged;
     Window.Current.Content.PointerPressed += MainPage_PointerEntered;
 }