public DiConnectionCompany(string server, int dbServerType, string userName, string password, string companyDb)
 {
     Company = new CompanyClass
     {
         Server       = server,
         DbServerType = (BoDataServerTypes)dbServerType,
         UserName     = userName,
         Password     = password,
         CompanyDB    = companyDb,
         language     = BoSuppLangs.ln_English
     };
     Company.Connect();
     if (!Company.Connected)
     {
         throw new Exception($"Cannot Connect To the Server : {Company.GetLastErrorDescription()} : " +
                             $"Server : {Company.Server}, " +
                             $"DbServerType : {Company.DbServerType}," +
                             $"UserName : {Company.UserName}," +
                             $"CompanyDB : {Company.CompanyDB}");
     }
 }