Пример #1
0
        public override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your fragment here
            _settingsService     = ServiceLocator.Current.GetInstance <ISettingsService>("SettingsService");
            _brakeCoolingService = ServiceLocator.Current.GetInstance <IBrakeCoolingService>("BrakeCoolingService");
        }
        public override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your fragment here
            _settingsService     = ServiceLocator.Current.GetInstance <ISettingsService>("SettingsService");
            _brakeCoolingService = ServiceLocator.Current.GetInstance <IBrakeCoolingService>("BrakeCoolingService");
            _massUnit            = _settingsService.GetSetting <bool>("UseImperialMass") ? "lbs" : "kg";
            _temperatureUnit     = _settingsService.GetSetting <bool>("UseFahrenheit") ? "°F" : "°C";
        }