Ejemplo n.º 1
0
        public App()
        {
            InitializeComponent();
            SplashFactory = (e) => new Views.Splash(e);

            #region App settings

            _settings           = SettingsService.Instance;
            _helper             = ActivityTrackerHelper.Instance;
            RequestedTheme      = _settings.AppTheme;
            CacheMaxDuration    = _settings.CacheMaxDuration;
            ShowShellBackButton = _settings.UseShellBackButton;

            #endregion
        }
Ejemplo n.º 2
0
        public ViewModelBase()
        {
            _settings = SettingsService.Instance;
            _helper   = ActivityTrackerHelper.Instance;

            if (_settings.CrmVersion != null)
            {
                if (_settings.CrmVersion.Major == 8)
                {
                    crmservice = new CrmWebAPIService();
                }
                else
                {
                    crmservice = new CrmSoapService();
                }
            }
        }