public ViewModelBase() { _settings = SettingsService.Instance; _helper = ActivityTrackerHelper.Instance; if (_settings.CrmVersion != null) { if (_settings.CrmVersion.Major == 8) crmservice = new CrmWebAPIService(); else crmservice = new CrmSoapService(); } }
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(); }