示例#1
0
 public App(IModule platformModule)
 {
     LocatorBase.Register(platformModule, false);
     InitializeComponent();
     SetLanguage();
     MainPage = new DashboardPage();
 }
示例#2
0
 public TranslateExtension()
 {
     if (Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Android)
     {
         ci = LocatorBase.Resolve <IGlobalizationService>().GetCurrentCultureInfo();
     }
 }
示例#3
0
 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);
     }
 }
示例#4
0
 public MainViewModelTests()
 {
     LocatorBase.Register(null, true);
 }
示例#5
0
 public ViewModelBase()
 {
     NavigationService = LocatorBase.Resolve <INavigationService>();
 }
示例#6
0
 public App(IModule platformModule)
 {
     LocatorBase.Register(platformModule, false);
     InitializeComponent();
     MainPage = new NavigationPage(new MainPage());
 }