/// <summary> /// Finished the launching. /// </summary> /// <param name="app">The app.</param> /// <param name="options">The options.</param> /// <returns>True or false.</returns> public override bool FinishedLaunching(UIApplication app, NSDictionary options) { this.window = new UIWindow(UIScreen.MainScreen.Bounds); UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.LightContent; var presenter = new MvxSlidingPanelsTouchViewPresenter(this, this.window); var setup = new Setup(this, presenter); setup.Initialize(); var appStart = new MvxAppStart<HomeScreenViewModel>(); Mvx.RegisterSingleton<IMvxAppStart>(appStart); Mvx.LazyConstructAndRegisterSingleton<DtoDownloader, IosDtoDownloader>(); var startup = Mvx.Resolve<IMvxAppStart>(); startup.Start(); this.window.MakeKeyAndVisible(); FBSettings.DefaultAppID = FacebookAppId; FBSettings.DefaultDisplayName = DisplayName; return true; }
public void Include(MvxNavigationService service, IMvxViewModelLoader loader) { _ = new MvxNavigationService(null, loader); service.Navigate(typeof(MvxViewModel)); service.Navigate(""); _ = new MvxAppStart <MvxNullViewModel>(null, null); }
public App () { // Kun ICalculation toteutusta kutsutaan ohjelmassa, huolehtii // rekisteröinti, että Calcutation toteutus luodaan. Mvx.RegisterType<ICalculation, Calculation> (); // Kun joku ohjelman osa kutsuu ImvxAppStart viittausta, // huolehtii rekisteröinti, että luokan instanssi luodaan vain // kerran. Määrittää mikä on ensimmäinen viewmodel, joka aukeaa. var appStart = new MvxAppStart<TipViewModel> (); Mvx.RegisterSingleton<IMvxAppStart> (appStart); }
public App() { // Kun ICalculation toteutusta kutsutaan ohjelmassa, huolehtii // rekisteröinti, että Calcutation toteutus luodaan. Mvx.RegisterType <ICalculation, Calculation> (); // Kun joku ohjelman osa kutsuu ImvxAppStart viittausta, // huolehtii rekisteröinti, että luokan instanssi luodaan vain // kerran. Määrittää mikä on ensimmäinen viewmodel, joka aukeaa. var appStart = new MvxAppStart <TipViewModel> (); Mvx.RegisterSingleton <IMvxAppStart> (appStart); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching (UIApplication app, NSDictionary options) { // create a new window instance based on the screen size _window = new UIWindow (UIScreen.MainScreen.Bounds); // If you have defined a view, add it here: // window.AddSubview (navigationController.View); var presenter = new MvxTouchViewPresenter(this, _window); var setup = new Setup(this, presenter); setup.Initialize(); var simpleStart = new MvxAppStart<PetShopViewModel>(); simpleStart.Start(); // make the window visible _window.MakeKeyAndVisible (); return true; }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // create a new window instance based on the screen size _window = new UIWindow(UIScreen.MainScreen.Bounds); // If you have defined a view, add it here: // window.AddSubview (navigationController.View); var presenter = new MvxTouchViewPresenter(this, _window); var setup = new Setup(this, presenter); setup.Initialize(); var simpleStart = new MvxAppStart <PetShopViewModel>(); simpleStart.Start(); // make the window visible _window.MakeKeyAndVisible(); return(true); }
public void Include(MvxViewModelViewTypeFinder viewModelViewTypeFinder) { _ = new MvxViewModelViewTypeFinder(null, null); _ = new MvxAppStart <MvxNullViewModel>(null, null); }
public App () { var appStart = new MvxAppStart<MainViewModel>(); Mvx.RegisterSingleton<IMvxAppStart>(appStart); }
public void Include(MvxNavigationService service, IMvxViewModelLoader loader, IMvxViewDispatcher viewDispatcher) { _ = new MvxNavigationService(null, viewDispatcher, MvvmCross.Mvx.IoCProvider); _ = new MvxAppStart <MvxNullViewModel>(null, null); }
public App() { var appStart = new MvxAppStart <MainViewModel>(); Mvx.RegisterSingleton <IMvxAppStart>(appStart); }
public void Include(MvxNavigationService service, IMvxViewModelLoader loader) { //_ = new MvxNavigationService(null, loader); _ = new MvxAppStart <MvxNullViewModel>(null, null); }