Ejemplo n.º 1
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();
            }
        }
Ejemplo 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();
 }
Ejemplo n.º 4
0
 static ActivityTrackerHelper()
 {
     // implement singleton pattern
     Instance = Instance ?? new ActivityTrackerHelper();
 }