public App(IModule platformModule) { LocatorBase.Register(platformModule, false); InitializeComponent(); SetLanguage(); MainPage = new DashboardPage(); }
public TranslateExtension() { if (Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Android) { ci = LocatorBase.Resolve <IGlobalizationService>().GetCurrentCultureInfo(); } }
private void SetLanguage() { if (Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Android) { var language = LocatorBase.Resolve <ILocalize>(); var culture = language.GetCurrentCultureInfo(); EveryCent.Resources.AppResources.Culture = culture; language.SetLocale(culture); } }
public MainViewModelTests() { LocatorBase.Register(null, true); }
public ViewModelBase() { NavigationService = LocatorBase.Resolve <INavigationService>(); }
public App(IModule platformModule) { LocatorBase.Register(platformModule, false); InitializeComponent(); MainPage = new NavigationPage(new MainPage()); }