public App() { // set up the model var dataStore = new SimpleDataStore(); this.RegisterServiceInstance <IDataStore>(dataStore); // set the start object var startApplicationObject = new StartApplicationObject(); this.RegisterServiceInstance <IMvxStartNavigation>(startApplicationObject); }
public App() { Cirrious.MvvmCross.Plugins.File.PluginLoader.Instance.EnsureLoaded(); Cirrious.MvvmCross.Plugins.ResourceLoader.PluginLoader.Instance.EnsureLoaded(); // set up the model var dataStore = new SimpleDataStore(); this.RegisterServiceInstance<IDataStore>(dataStore); // set the start object var startApplicationObject = new StartApplicationObject(); this.RegisterServiceInstance<IMvxStartNavigation>(startApplicationObject); }