public ViewModelBase()
        {
            _settings = SettingsService.Instance;
            _helper = ActivityTrackerHelper.Instance;

            if (_settings.CrmVersion != null)
            {
                if (_settings.CrmVersion.Major == 8)
                    crmservice = new CrmWebAPIService();
                else
                    crmservice = new CrmSoapService();
            }
        }
Esempio n. 2
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
        }
 static ActivityTrackerHelper()
 {
     // implement singleton pattern
     Instance = Instance ?? new ActivityTrackerHelper();
 }
Esempio n. 4
0
 static ActivityTrackerHelper()
 {
     // implement singleton pattern
     Instance = Instance ?? new ActivityTrackerHelper();
 }