protected override void OnStart() { if (taleManager != null) { if (taleManager.IsFrontPage()) { if (taleManager.Music != "") { mediaPlayerTale = MediaPlayer.Create(this, Android.Net.Uri.Parse(taleManager.Music)); mediaPlayerTale.Start(); } } if (taleManager.IsPage()) { if (taleManager.CurrentPage.Music != "") { mediaPlayerTale = MediaPlayer.Create(this, Android.Net.Uri.Parse(taleManager.CurrentPage.Music)); mediaPlayerTale.Start(); } } } this.RequestedOrientation = ScreenOrientation.Landscape; base.OnStart(); this.RequestedOrientation = ScreenOrientation.Landscape; }
void timerPage_Tick(object sender, EventArgs e) { if (taleManager.IsFrontPage()) { taleManager.GoToNextPage(); } timerPage.Stop(); UpdateGUI(); reproduce(); }