2
0

Program.cs 578 B

1234567891011121314151617181920212223
  1. using Foundation;
  2. using UIKit;
  3. namespace BatteryStatus.iOS
  4. {
  5. [Register("AppDelegate")]
  6. public class AppDelegate : UIApplicationDelegate
  7. {
  8. BatteryStatusGame? game;
  9. public override bool FinishedLaunching(UIApplication app, NSDictionary options)
  10. {
  11. var powerStatus = new PowerStatus();
  12. game = new BatteryStatusGame(powerStatus);
  13. game.Run();
  14. return true;
  15. }
  16. static void Main(string[] args)
  17. {
  18. UIApplication.Main(args, null, typeof(AppDelegate));
  19. }
  20. }
  21. }