public override bool WillFinishLaunching(UIApplication application, NSDictionary launchOptions) { // create a new window instance based on the screen size _window = new UIWindow(UIScreen.MainScreen.Bounds); _bootstrapper = new Bootstrapper <Portable.App>(_window, new AutofacContainer()); _bootstrapper.Initialize(); return(true); }
private void InitializeIfNeed() { if (_bootstrapper != null) { return; } Window = new UIWindow(UIScreen.MainScreen.Bounds); _bootstrapper = CreateBootstrapper(Window); _bootstrapper.Initialize(); }