public SignInWizzardPageViewModel()
 {
     m_authenticationService = AuthenticationService.Instance;
     m_dialogSService = DialogService.Instance;
     m_settingsService = SettingsService.Instance;
     UserName = m_settingsService.User?.UserName; 
 }
 public SignOutSettingsPageViewModel()
 {
     m_authenticationHandler = AuthenticationService.Instance;
     m_dialogSService = DialogService.Instance;
     m_settingsService = SettingsService.Instance;
     UserName = m_settingsService.User?.UserName; 
 }
 public ServiceUrlSettingsPageViewModel()
 {
     if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
     {
         m_settingsService = SettingsService.Instance;
         m_dialogSService = DialogService.Instance;
         m_authenticationHandler = AuthenticationService.Instance;
         ServiceUrl = m_settingsService.ServiceUrl;
     }
 }
 public SettingsPartViewModel()
 {
     if (Windows.ApplicationModel.DesignMode.DesignModeEnabled)
     {
         // designtime
     }
     else
     {
         m_settings = SettingsService.Instance;
     }
 }
Exemple #5
0
        public App()
        {
            InitializeComponent();
            SplashFactory = (e) => new Views.Splash(e);

            #region app settings

            // some settings must be set in app.constructor
            m_settingsService = SettingsService.Instance;
            RequestedTheme = m_settingsService.UseLightTheme ? ApplicationTheme.Light : ApplicationTheme.Dark;
            CacheMaxDuration = m_settingsService.CacheMaxDuration;
            AutoSuspendAllFrames = true;
            AutoRestoreAfterTerminated = true;
            AutoExtendExecutionSession = true;

            #endregion
        }
Exemple #6
0
 public Shell()
 {
     Instance = this;
     InitializeComponent();
     m_settings = SettingsService.Instance;
 }
 public AuthenticationService()
 {
     m_settingsService = SettingsService.Instance;
     m_resourceService = ResourceService.Instance;
     this.m_strUnauthorizedAccessExceptionMessage = m_resourceService.GetString(
         "UnauthorizedAccessExceptionMessage", "The user name or password is incorrect");
     this.m_strEncryptedLoginException = m_resourceService.GetString(
         "EncryptedLoginException", "There is a login error. Please deactivate the encrypted login.");
 }