Example #1
0
 public SettingsViewModel()
 {
     DBHelper = new Services.DataHelper();
     RefreshAppConfig();
     //if (string.IsNullOrEmpty(urlDomain) && string.IsNullOrEmpty(urlPrefix))
     //{
     //    RefreshAppConfig();
     //}
     //this.UrlDomain = urlDomain;
     //this.UrlPrefix = urlPrefix;
     //this.IsFingerPrint = isFingerPrint;
 }
Example #2
0
        public LoginViewModel(InitialLoad initialLoad, Table_Config table_Config)
        {
            DBHelper = new Services.DataHelper();

            GetFingerPrintAvailable();

            if (initialLoad.IsSuccess)
            {
                if (initialLoad.HasConfigData)
                {
                    #region Set UI & Global Data
                    this.UIIsVisible      = true;
                    this.UIErrorIsVisible = false;
                    this.IsChecked        = table_Config.FingerPrintAllow;
                    this.UrlDomain        = table_Config.UrlDomain;
                    this.UrlPrefix        = table_Config.UrlPrefix;
                    this.IsEnabled        = true;
                    #endregion

                    if (IsChecked)
                    {
                        this.IsVisibleFingerPrint = true;
                        this.IsVisibleLogin       = false;
                    }
                    else
                    {
                        this.IsVisibleFingerPrint = false;
                        this.IsVisibleLogin       = true;
                    }
                }
                else
                {
                    Alert.Show("AplicaciĆ³n sin configuraciĆ³n!");
                }
            }
            else
            {
                this.UIIsVisible      = false;
                this.UIErrorIsVisible = true;
            }
        }