Example #1
0
 private void LoadSQL()
 {
     lcsql = new LogicConfigSQL("SafCom");
     try
     {
         txtBase.Text        = lcsql.GetCatalogo();
         txtPasswordSQL.Text = lcsql.GetContraseña();
         txtServer.Text      = lcsql.GetServidor();
         txtUsuarioSQL.Text  = lcsql.GetUsuario();
     }
     catch (AppException appex)
     {
         base.InformarError(appex.Message, "Cargar Configuración.");
     }
 }
Example #2
0
 public override void LoadConfigs()
 {
     lcsql = new LogicConfigSQL("Saftime");
     lcs   = new LogicConfigSaftime();
     try
     {
         txtBase.Text          = lcsql.GetCatalogo();
         txtPassword.Text      = lcsql.GetContraseña();
         txtServer.Text        = lcsql.GetServidor();
         txtUsuario.Text       = lcsql.GetUsuario();
         chckEmpleados.Checked = lcs.IsEmpleados();
         chckRegis.Checked     = lcs.IsRegistros();
     }
     catch (AppException appex)
     {
         base.InformarError(appex.Message, "Cargar Configuraciones.");
     }
     catch (Exception ex)
     {
         base.InformarError(ex.Message, "Cargar Configuraciones.");
     }
 }