public Database() { this.crmSoftware = AppGlobal.getCRMSoftwareValue(UConfig.getAppConfigValue("CRMSoftware", false)); this.databaseVersion = AppGlobal.getDatabaseVersion(UConfig.getAppConfigValue("DatabaseVersion", false)); this.connectionString = UConfig.getAppConfigValue("SQLConnectionString", bool.Parse(UConfig.getAppConfigValue("EncryptedCredentials", false))); this.connection = new SqlConnection(connectionString); }
public static void loadDefaultHubSpotOptions(SqlConnection connection, CRMSoftware crmSoftware) { switch (crmSoftware) { case CRMSoftware.SALESLOGIX: //loadSalesLogixOptions(); break; case CRMSoftware.SAGECRM: //loadSageCRMOptions(); break; default: //Throw error break; } }
private IConnector getHubSpotConnector(CRMSoftware software) { IConnector returnValue = null; if (software == CRMSoftware.SAGECRM) { returnValue = new SageCRMConnector(); } else if (software == CRMSoftware.SALESLOGIX) { returnValue = new SalesLogixConnector(); } // MHM Added else if (software == CRMSoftware.GOLDMINE) { returnValue = new GMConnector(); } //*********** else { //We have a problem } return returnValue; }