public static SAPbobsCOM.Company Conectar_Aplicacion() { CapaDatos.DConexion oConexion = new CapaDatos.DConexion(); oCompany = oConexion.oCompany; sCodUsuActual = oCompany.UserSignature.ToString(); sNomUsuActual = ApplicationExtensions.CurrentUserName(); sAliasUsuActual = oCompany.UserName; sCurrentCompanyDB = oCompany.CompanyDB; return(oCompany); }