public override void DidFinishLaunching(NSNotification notification) { // Insert code here to initialize your application MvxMacSetupSingleton.EnsureSingletonAvailable(this, MainWindow).EnsureInitialized(); RunAppStart(); base.DidFinishLaunching(notification); }
public override void DidFinishLaunching(NSNotification notification) { MvxMacSetupSingleton.EnsureSingletonAvailable((IMvxApplicationDelegate)this, MainWindow).EnsureInitialized(); IMvxAppStart mvxAppStart = Mvx.Resolve <IMvxAppStart>(); if (mvxAppStart.IsStarted) { return; } mvxAppStart.Start(this.GetAppStartHint(notification)); }
public override void DidFinishLaunching(Foundation.NSNotification notification) { var instance = MvxMacSetupSingleton.EnsureSingletonAvailable(this, MainWindow); instance.EnsureInitialized(); RunAppStart(notification); instance.PlatformSetup <MvxFormsMacSetup>().FormsApplication.SendStart(); FireLifetimeChanged(MvxLifetimeEvent.Launching); base.DidFinishLaunching(notification); }
public override void DidFinishLaunching(Foundation.NSNotification notification) { var instance = MvxMacSetupSingleton.EnsureSingletonAvailable(this, MainWindow); instance.EnsureInitialized(); RunAppStart(notification); instance.PlatformSetup <MvxFormsMacSetup>().FormsApplication.SendStart(); FireLifetimeChanged(MvxLifetimeEvent.Launching); // Unlike most other overrides, this should be left here so that the base FormsApplicationDelegate override is called base.DidFinishLaunching(notification); }
public override void DidFinishLaunching(NSNotification notification) { MvxMacSetupSingleton.EnsureSingletonAvailable(this).EnsureInitialized(); RunAppStart(); }
protected virtual void LoadFormsApplication() { var instance = MvxMacSetupSingleton.EnsureSingletonAvailable(this, MainWindow); LoadApplication(instance.PlatformSetup <MvxFormsMacSetup>().FormsApplication); }