/// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used such as when the application is launched to open a specific file. /// </summary> /// <param name="e">Details about the launch request and process.</param> protected override void OnLaunched(LaunchActivatedEventArgs e) { FrameworkContext.Page = new MainPage(); var game = new Example05SongGame(); game.Run(); }
static void Main(string[] args) { using (var game = new Example05SongGame()) { game.Run(); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); this.RequestedOrientation = Android.Content.PM.ScreenOrientation.Landscape; // Create and run the game var game = new Example05SongGame(); game.Run(); }